Add role name as tag to all basic roles #85
1 changed files with 3 additions and 0 deletions
add role tag to base_config role
commit
f27a7ee00b
|
|
@ -1,10 +1,12 @@
|
|||
# Ensure the ssh module is disabled, so a cloud-init config change doesn't regenerate the host keys for no reason.
|
||||
- name: check if cloud-init config file exists
|
||||
tags: [ "base_config" ]
|
||||
ansible.builtin.stat:
|
||||
path: /etc/cloud/cloud.cfg
|
||||
register: base_config__stat_cloud_cfg
|
||||
|
||||
- name: ensure the cloud-init ssh module is disabled
|
||||
tags: [ "base_config" ]
|
||||
ansible.builtin.replace:
|
||||
path: /etc/cloud/cloud.cfg
|
||||
regexp: " - ssh$"
|
||||
|
|
@ -14,6 +16,7 @@
|
|||
|
||||
# Ensure a base set of admin tools is installed.
|
||||
- name: ensure a base set of admin tools is installed
|
||||
tags: [ "base_config" ]
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- vim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue