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
|
||||
shell: "systemctl disable firewalld; systemctl stop firewalld"
|
||||
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Ensure UFW is installed
|
||||
|
12
setup.yml
12
setup.yml
@ -1,20 +1,30 @@
|
||||
---
|
||||
|
||||
- hosts: all
|
||||
handlers:
|
||||
- import_tasks: handlers.yml
|
||||
vars_prompt:
|
||||
- name: password
|
||||
prompt: "Enter new root and admin password"
|
||||
roles:
|
||||
- immortal
|
||||
become: yes
|
||||
|
||||
- hosts: web
|
||||
handlers:
|
||||
- import_tasks: handlers.yml
|
||||
roles:
|
||||
- web
|
||||
become: yes
|
||||
|
||||
- hosts: database
|
||||
handlers:
|
||||
- import_tasks: handlers.yml
|
||||
roles:
|
||||
- database
|
||||
become: yes
|
||||
|
||||
- hosts: all
|
||||
roles:
|
||||
- geerlingguy.docker
|
||||
- geerlingguy.docker
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user