Skip to content

Commit 9cfd738

Browse files
committed
refactor(baseline): Prepare to add tasks to the play
by using the tasks keyword instead of the roles keyword and static import_roles. Also deindent lists.
1 parent 51a30b0 commit 9cfd738

File tree

1 file changed

+33
-27
lines changed

1 file changed

+33
-27
lines changed

playbooks/baseline/config.yml

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
1-
- name: Baseline - configuration
1+
- name: Hosts are configured in the standard manner
22
hosts: polaris_hosts
33
become: true
44
tags:
5-
- polaris.layer.baseline
6-
- polaris.layer.baseline.config
7-
roles:
8-
- name: "Pip Packages"
9-
role: geerlingguy.pip
10-
vars:
11-
pip_install_packages:
12-
- name: jsondiff
13-
- name: "IPv6 is disabled"
14-
role: ypsman.ipv6_disable
15-
- name: "Time is Synchronised"
16-
role: linux-system-roles.timesync
17-
vars:
18-
timesync_ntp_servers:
19-
- hostname: 0.ubuntu.pool.ntp.org
20-
pool: true
21-
iburst: true
22-
- hostname: 1.ubuntu.pool.ntp.org
23-
pool: true
24-
iburst: true
25-
- hostname: 2.ubuntu.pool.ntp.org
26-
pool: true
27-
iburst: true
28-
- hostname: 3.ubuntu.pool.ntp.org
29-
pool: true
30-
iburst: true
5+
- polaris.layer.baseline
6+
- polaris.layer.baseline.config
7+
tasks:
8+
9+
- name: Python packages needed by Ansible are installed by Pip
10+
ansible.builtin.import_role:
11+
name: geerlingguy.pip
12+
vars:
13+
pip_install_packages:
14+
- name: jsondiff
15+
16+
- name: IPv6 is disabled
17+
ansible.builtin.import_role:
18+
name: ypsman.ipv6_disable
19+
20+
- name: Time is Synchronised
21+
ansible.builtin.import_role:
22+
name: linux-system-roles.timesync
23+
vars:
24+
timesync_ntp_servers:
25+
- hostname: 0.ubuntu.pool.ntp.org
26+
pool: true
27+
iburst: true
28+
- hostname: 1.ubuntu.pool.ntp.org
29+
pool: true
30+
iburst: true
31+
- hostname: 2.ubuntu.pool.ntp.org
32+
pool: true
33+
iburst: true
34+
- hostname: 3.ubuntu.pool.ntp.org
35+
pool: true
36+
iburst: true

0 commit comments

Comments
 (0)