This commit is contained in:
Neil Hanlon 2021-12-29 19:54:31 -05:00
parent 5504c67d3c
commit cd452174c0
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
id_ed25519 id_ed25519
.terraform/ .terraform/
.envrc .envrc
*.retry

View File

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