diff --git a/examples/000_initial_examples/etc_ansible_hosts b/examples/000_initial_examples/etc_ansible_hosts deleted file mode 100755 index 56f0156..0000000 --- a/examples/000_initial_examples/etc_ansible_hosts +++ /dev/null @@ -1,12 +0,0 @@ -[loadbalancer] -lb01 ansible_connection=local - -[webserver] -app01 ansible_connection=local -app02 ansible_connection=local - -[database] -db01 ansible_connection=local - -[control] -control ansible_connection=local diff --git a/examples/000_initial_examples/hostname.yml b/examples/000_initial_examples/hostname.yml deleted file mode 100644 index a1a3ad6..0000000 --- a/examples/000_initial_examples/hostname.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- - - hosts: all - tasks: - - name: get server hostname - command: hostname diff --git a/examples/000_initial_examples/your-first-hosts-file b/examples/000_initial_examples/your-first-hosts-file deleted file mode 100644 index 4861c2d..0000000 --- a/examples/000_initial_examples/your-first-hosts-file +++ /dev/null @@ -1,12 +0,0 @@ -[loadbalancer] -lb01 - -[webserver] -app01 -app02 - -[database] -db01 - -[control] -control ansible_connection=local diff --git a/examples/001_apt/hosts b/examples/001_apt/hosts index af525aa..0432cdd 100644 --- a/examples/001_apt/hosts +++ b/examples/001_apt/hosts @@ -1,5 +1,8 @@ [database] -192.168.0.2 +192.168.11.20 [loadbalancer] -192.168.0.3 \ No newline at end of file +192.168.11.30 + +[webserver] +192.168.11.40 \ No newline at end of file diff --git a/examples/002_become/database.yml b/examples/002_become/database.yml index 82aa0f1..351450c 100644 --- a/examples/002_become/database.yml +++ b/examples/002_become/database.yml @@ -2,5 +2,5 @@ - hosts: database become: true tasks: - - name: install mysql-server - apt: name=mysql-server state=present update_cache=yes + - name: install default-mysql-server + apt: name=default-mysql-server state=present update_cache=yes \ No newline at end of file diff --git a/examples/002_become/hostname.yml b/examples/002_become/hostname.yml deleted file mode 100644 index a1a3ad6..0000000 --- a/examples/002_become/hostname.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- - - hosts: all - tasks: - - name: get server hostname - command: hostname diff --git a/examples/002_become/loadbalancer.yml b/examples/002_become/loadbalancer.yml index 50881f9..81aba7d 100644 --- a/examples/002_become/loadbalancer.yml +++ b/examples/002_become/loadbalancer.yml @@ -3,4 +3,4 @@ become: true tasks: - name: install nginx - apt: name=nginx state=present update_cache=yes + apt: name=nginx state=present update_cache=yes \ No newline at end of file diff --git a/examples/003_with_items/database.yml b/examples/003_with_items/database.yml index 82aa0f1..d5595ef 100644 --- a/examples/003_with_items/database.yml +++ b/examples/003_with_items/database.yml @@ -2,5 +2,5 @@ - hosts: database become: true tasks: - - name: install mysql-server - apt: name=mysql-server state=present update_cache=yes + - name: install default-mysql-server + apt: name=default-mysql-server state=present update_cache=yes diff --git a/examples/003_with_items/hostname.yml b/examples/003_with_items/hostname.yml deleted file mode 100644 index a1a3ad6..0000000 --- a/examples/003_with_items/hostname.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- - - hosts: all - tasks: - - name: get server hostname - command: hostname diff --git a/examples/004_services/database.yml b/examples/004_services/database.yml index 06dd2cf..89a3baf 100644 --- a/examples/004_services/database.yml +++ b/examples/004_services/database.yml @@ -2,8 +2,8 @@ - hosts: database become: true tasks: - - name: install mysql-server - apt: name=mysql-server state=present update_cache=yes + - name: install default-mysql-server + apt: name=default-mysql-server state=present update_cache=yes - name: ensure mysql started service: name=mysql state=started enabled=yes diff --git a/examples/004_services/playbooks/stack_restart.yml.save b/examples/004_services/playbooks/stack_restart.yml.save deleted file mode 100644 index 6be67be..0000000 --- a/examples/004_services/playbooks/stack_restart.yml.save +++ /dev/null @@ -1,17 +0,0 @@ ---- -- hosts: database - become: true - tasks: - - name: reiniciar mysql - service: name=mysql state=restarted - -- hosts: loadbalancer - become: true - tasks: - - name: reiniciar nginx - service: name=nginx state=restarted - -- hosts: webserver - become: true - tasks: - service: name=apache2 state=restarted