Skip to content

Commit 0c73a04

Browse files
authored
SYS-576 use ansible import_tasks in place of include; update python-builder images (#117)
1 parent fdd847d commit 0c73a04

16 files changed

Lines changed: 1834 additions & 1320 deletions

File tree

ansible/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ansible==4.9.0
2-
ansible-lint==5.2.1
3-
pip==21.3.1
1+
ansible==8.2.0
2+
ansible-lint==6.17.2
3+
pip==23.2.1

ansible/roles/docker_node/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Set up all packages, volumes, security definitions and services
55
# for a docker swarm node
66

7-
- include: security.yml
8-
- include: repos.yml
9-
- include: kernel.yml
7+
- import_tasks: security.yml
8+
- import_tasks: repos.yml
9+
- include_tasks: kernel.yml
1010
when: kernel.non_stock
11-
- include: packages.yml
12-
- include: docker.yml
11+
- import_tasks: packages.yml
12+
- import_tasks: docker.yml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Unit]
2+
RequiresMountsFor={{ docker_volumewait }}
3+
4+
[Service]
5+
ExecStart=
6+
ExecStart=/usr/bin/dockerd {{ docker.cli_opts }}

ansible/roles/fileserver/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
name: python-pip
1515
when: ansible_distribution_version < '20.04'
1616

17-
- include: nfs.yml
18-
- include: instantlinux.yml
19-
- include: samba.yml
20-
- include: virtualbox.yml
21-
- include: vsftpd.yml
17+
- import_tasks: nfs.yml
18+
- import_tasks: instantlinux.yml
19+
- import_tasks: samba.yml
20+
- import_tasks: virtualbox.yml
21+
- import_tasks: vsftpd.yml

ansible/roles/kubernetes/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
command: hostnamectl --static set-hostname {{ inventory_hostname }}
5151
when: inventory_hostname != ansible_hostname
5252

53-
- include: cri-dockerd.yml
53+
- include_tasks: cri-dockerd.yml
5454

5555
- name: Set up master
56-
include: master.yml
56+
include_tasks: master.yml
5757
when: k8s.master
5858

5959
- name: Join cluster
60-
include: join.yml
60+
include_tasks: join.yml
6161
when: not k8s.master
6262

6363
# TODO bug 1294

ansible/roles/monitoring_agent/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# main.yml
33

4-
- include: packages.yml
4+
- import_tasks: packages.yml
55

66
- name: Local nagios plugins path
77
file:

ansible/roles/mythfrontend/tasks/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
path: "{{ x11_config_path }}"
99
state: directory
1010

11-
- include: "{{ ansible_os_family | lower }}/packages.yml"
12-
- include: "{{ ansible_os_family | lower }}/lirc.yml"
11+
- include_tasks: "{{ ansible_os_family | lower }}/packages.yml"
12+
- include_tasks: "{{ ansible_os_family | lower }}/lirc.yml"
1313
when: ansible_distribution_version < '18.04'
14-
- include: "{{ ansible_os_family | lower }}/network.yml"
14+
- include_tasks: "{{ ansible_os_family | lower }}/network.yml"
1515
when: ansible_distribution_version < '18.04'
1616

17-
- include: "{{ ansible_os_family | lower }}/ir-keytable.yml"
17+
- include_tasks: "{{ ansible_os_family | lower }}/ir-keytable.yml"
1818
when: ansible_distribution_version >= '18.04'
1919

20-
- include: autosuspend.yml
20+
- include_tasks: autosuspend.yml
2121
when: suspend
2222

23-
- include: drivers/{{ display_driver.type }}.yml
23+
- include_tasks: drivers/{{ display_driver.type }}.yml
2424

25-
- include: setup.yml
26-
- include: "{{ ansible_os_family | lower }}/desktop.yml"
25+
- include_tasks: setup.yml
26+
- include_tasks: "{{ ansible_os_family | lower }}/desktop.yml"

ansible/roles/network/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
apt:
44
name: "{{ ubuntu_packages }}"
55

6-
- include: network_legacy.yml
6+
- import_tasks: network_legacy.yml
77
when: ansible_distribution_version < '18.04'
88

9-
- include: netplan.yml
9+
- import_tasks: netplan.yml
1010
when: ansible_distribution_version >= '18.04'
1111

12-
- include: kernel.yml
13-
- include: sshd.yml
12+
- import_tasks: kernel.yml
13+
- import_tasks: sshd.yml

ansible/roles/users/tasks/main.yml

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

44
# This is heavily customized: replace with your own security policies
55

6-
- include: packages.yml
7-
- include: grub.yml
6+
- import_tasks: packages.yml
7+
- import_tasks: grub.yml
88

99
- name: Define group ids
1010
group:

ansible/roles/volumes/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
- Cryptsetup resize
3333
- Filesystem resize
3434

35-
- include: encrypted.yml
36-
- include: cifs.yml
35+
- import_tasks: encrypted.yml
36+
- import_tasks: cifs.yml
3737

3838
- name: Network and local fstab entries
3939
mount:

0 commit comments

Comments
 (0)