Skip to content

Commit 81017e7

Browse files
Use modern apt ansible syntax.
1 parent c0b9901 commit 81017e7

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

icpc-wf/ansible/admin.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838

3939
- name: install common required/useful packages
4040
tags: packages
41-
apt: pkg={{item}} state=present
42-
with_items:
41+
apt:
42+
state: present
43+
pkg:
4344
- clusterssh
4445
- gitk
4546
- git-gui

icpc-wf/ansible/common_tasks_all.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
- name: install common required/useful packages
1010
tags: packages
11-
apt: pkg={{item}} state=present
12-
with_items:
11+
apt:
12+
state: present
13+
pkg:
1314
- ack-grep
1415
- git
1516
- htop

icpc-wf/ansible/common_tasks_packages_icpc-wf.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
- name: remove some packages
2525
tags: packages
26-
apt: pkg={{item}} state=absent
27-
with_items:
28-
- ntp
26+
apt:
27+
pkg: ntp
28+
state: absent
2929

3030
- meta: flush_handlers
3131
tags: packages

icpc-wf/ansible/domserver.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
- include: common_tasks_prebuild.yml
3030

3131
- name: install domserver required packages
32-
apt: pkg={{item}} state=present
33-
with_items:
32+
apt:
33+
state: present
34+
pkg:
3435
- mariadb-server
3536
- nginx
3637
- php-fpm

0 commit comments

Comments
 (0)