diff --git a/.gitignore b/.gitignore index 028e00b..5917e11 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ id_ed25519 .terraform/ .envrc +*.retry diff --git a/ansible/playbooks/init-nodes.yml b/ansible/playbooks/init-nodes.yml index 7969878..1cdd32b 100644 --- a/ansible/playbooks/init-nodes.yml +++ b/ansible/playbooks/init-nodes.yml @@ -31,22 +31,26 @@ enabled: no force: yes state: stopped + tags: services - name: Set SELinux to permissive ansible.posix.selinux: policy: targeted state: permissive + tags: services - name: Ensure packages are upgraded ansible.builtin.dnf: name: "*" state: latest + tags: packages - name: Disable SSH Agent Forwarding lineinfile: dest: /etc/ssh/sshd_config regexp: '^.*AllowAgentForwarding' line: 'AllowAgentForwarding no' + tags: services notify: - restart_sshd @@ -58,7 +62,7 @@ owner: 'root' group: 'root' tags: - - + - interfaces - name: Generate ifcfg files shell: /root/interfaces.sh @@ -81,15 +85,17 @@ - python3-devel - sudo state: latest + tags: packages - name: Clone repository ansible.builtin.git: repo: https://github.com/NeilHanlon/openstack-ansible.git #single_branch: yes dest: /opt/openstack-ansible version: 'feature/rocky8' + tags: repos when: tag.find("infra") != -1 - tags: test + tags: infra post_tasks: - name: Disable cloud init from future runs