add role tag to base_config role
This commit is contained in:
parent
20b24f6df7
commit
c5951647cf
1 changed files with 6 additions and 3 deletions
|
|
@ -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.
|
# 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"]
|
||||||
|
name: check if cloud-init config file exists
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: /etc/cloud/cloud.cfg
|
path: /etc/cloud/cloud.cfg
|
||||||
register: base_config__stat_cloud_cfg
|
register: base_config__stat_cloud_cfg
|
||||||
|
|
||||||
- name: ensure the cloud-init ssh module is disabled
|
- tags: ["base_config"]
|
||||||
|
name: ensure the cloud-init ssh module is disabled
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: /etc/cloud/cloud.cfg
|
path: /etc/cloud/cloud.cfg
|
||||||
regexp: " - ssh$"
|
regexp: " - ssh$"
|
||||||
|
|
@ -13,7 +15,8 @@
|
||||||
when: base_config__stat_cloud_cfg.stat.exists
|
when: base_config__stat_cloud_cfg.stat.exists
|
||||||
|
|
||||||
# Ensure a base set of admin tools is installed.
|
# Ensure a base set of admin tools is installed.
|
||||||
- name: ensure a base set of admin tools is installed
|
- tags: ["base_config"]
|
||||||
|
name: ensure a base set of admin tools is installed
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- vim
|
- vim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue