Added all files
This commit is contained in:
6
examples/002_become/database.yml
Normal file
6
examples/002_become/database.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- hosts: database
|
||||
become: true
|
||||
tasks:
|
||||
- name: install mysql-server
|
||||
apt: name=mysql-server state=present update_cache=yes
|
||||
5
examples/002_become/hostname.yml
Normal file
5
examples/002_become/hostname.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: get server hostname
|
||||
command: hostname
|
||||
8
examples/002_become/hosts
Normal file
8
examples/002_become/hosts
Normal file
@@ -0,0 +1,8 @@
|
||||
[database]
|
||||
192.168.0.2
|
||||
|
||||
[loadbalancer]
|
||||
192.168.0.3
|
||||
|
||||
[webserver]
|
||||
192.168.0.4
|
||||
6
examples/002_become/loadbalancer.yml
Normal file
6
examples/002_become/loadbalancer.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- hosts: loadbalancer
|
||||
become: true
|
||||
tasks:
|
||||
- name: install nginx
|
||||
apt: name=nginx state=present update_cache=yes
|
||||
Reference in New Issue
Block a user