aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2022-02-01 22:28:06 +0100
committerGravatar Joe Banks <[email protected]>2022-02-05 14:31:37 +0000
commit761a8e124e84a82bd2272228cbff2a1260456f51 (patch)
treeb6f7c3138498e05ec2c679a1e34ee9657f3d8848 /roles/common/tasks
parentEpand entire dict when adding psql users and databases (diff)
Add podman role and improve playbook organization
This PR adds a new podman role, see #18. The playbook is merged into sections for each group of hosts that we want to deploy to. To limit by role now, use tags, such as `-t role::podman`.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r--roles/common/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index 827e5e7..b3f375b 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -1,6 +1,8 @@
- name: Update hostname to match Ansible inventory
hostname:
name: "{{ inventory_hostname }}"
+ tags:
+ - role::common
- name: Update /etc/hosts to match Ansible inventory
template:
@@ -9,6 +11,8 @@
mode: '0644'
owner: root
group: root
+ tags:
+ - role::common
- name: Disable SSH password authentication
lineinfile:
@@ -18,6 +22,8 @@
state: present
notify:
- restart ssh
+ tags:
+ - role::common
- name: Set timezone to UTC
file:
@@ -28,3 +34,5 @@
group: root
notify:
- restart systemd-timesyncd
+ tags:
+ - role::common