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