Last active
November 28, 2016 08:54
-
-
Save tuudik/6926d2d38e106672faa9bc314779cc94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: digitalocean | |
vars: | |
# DigitalOcean configuration | |
do_token: 55555 | |
ssh_key: '~/.ssh/id_rsa3' | |
pause_duration: 10 | |
roles: | |
- create_droplet | |
#The host IP is set from role "create_droplet" using "add_host" to group droplet | |
- hosts: droplet | |
gather_facts: no | |
pre_tasks: | |
- name: 'Install Python2.7 for running Ansible in remote Machine' | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) | |
- hosts: droplet | |
gather_facts: yes | |
vars: | |
# Wordpress Configuration | |
wp_mysql_db: ansible_wp_db | |
wp_mysql_user: ansible_wp_user | |
wp_mysql_pw: ansible_wp_pw | |
wp_dest: /var/www/html | |
wp_domain_name: {{ ansible_default_ipv4.address }} | |
wp_site_title: "Magical Ansible Wordpress" | |
wp_admin_user: admin | |
wp_admin_pw: admin | |
wp_admin_mail: [email protected] | |
roles: | |
- server | |
- php | |
- mysql | |
- wordpress | |
# - test | |
- hosts: digitalocean | |
do_token: 55555 | |
- delete droplet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment