Compare commits
3 Commits
f0a6605f82
...
06b094e769
Author | SHA1 | Date | |
---|---|---|---|
06b094e769 | |||
62dd3230fb | |||
a3f45c0901 |
3
roles/immortal/handlers/main.yml
Normal file
3
roles/immortal/handlers/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
- name: restart ufw
|
||||||
|
service: name=ufw state=restarted
|
||||||
|
become: yes
|
@ -54,7 +54,6 @@
|
|||||||
|
|
||||||
- name: Disable firewalld if RHEL based
|
- name: Disable firewalld if RHEL based
|
||||||
shell: "systemctl disable firewalld; systemctl stop firewalld"
|
shell: "systemctl disable firewalld; systemctl stop firewalld"
|
||||||
|
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: Ensure UFW is installed
|
- name: Ensure UFW is installed
|
||||||
|
12
setup.yml
12
setup.yml
@ -1,20 +1,30 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
handlers:
|
||||||
|
- import_tasks: handlers.yml
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
- name: password
|
- name: password
|
||||||
prompt: "Enter new root and admin password"
|
prompt: "Enter new root and admin password"
|
||||||
roles:
|
roles:
|
||||||
- immortal
|
- immortal
|
||||||
|
become: yes
|
||||||
|
|
||||||
- hosts: web
|
- hosts: web
|
||||||
|
handlers:
|
||||||
|
- import_tasks: handlers.yml
|
||||||
roles:
|
roles:
|
||||||
- web
|
- web
|
||||||
|
become: yes
|
||||||
|
|
||||||
- hosts: database
|
- hosts: database
|
||||||
|
handlers:
|
||||||
|
- import_tasks: handlers.yml
|
||||||
roles:
|
roles:
|
||||||
- database
|
- database
|
||||||
|
become: yes
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- geerlingguy.docker
|
- geerlingguy.docker
|
||||||
|
become: yes
|
Loading…
Reference in New Issue
Block a user