Initial skeleton of setup. Ansible only runs a few initial tasks.
This commit is contained in:
32
ansible/playbooks/site.yml
Normal file
32
ansible/playbooks/site.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: All hosts ansible dependencies
|
||||
hosts: all
|
||||
user: root
|
||||
gather_facts: false
|
||||
serial: 100%
|
||||
vars:
|
||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||
tasks:
|
||||
# - name: Wait for connection
|
||||
# wait_for_connection:
|
||||
# delay: 60
|
||||
# timeout: 180
|
||||
- include_tasks: ../tasks/ansible-dependencies.yml
|
||||
|
||||
- name: Sql host setup
|
||||
hosts: sql
|
||||
user: root
|
||||
gather_facts: true
|
||||
serial: 100%
|
||||
vars:
|
||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||
|
||||
- name: Web host setup
|
||||
hosts: web
|
||||
user: root
|
||||
gather_facts: true
|
||||
serial: 100%
|
||||
vars:
|
||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||
tasks:
|
||||
- include_tasks: ../tasks/ubuntu-common.yml
|
||||
Reference in New Issue
Block a user