Last active
August 29, 2015 14:26
-
-
Save netmarkjp/1fe5758a48f3b0b462ca to your computer and use it in GitHub Desktop.
hiscon201508
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
sudo yum -y install epel-release | |
sudo yum -y install ansible | |
echo "localhost" > ansible_hosts | |
curl -o playbook.yaml https://gist.githubusercontent.com/netmarkjp/1fe5758a48f3b0b462ca/raw/9824e2984880723fd79edbf1b9345830a69fdb1c/playbook.yaml | |
sudo ansible-playbook -c local -i ansible_hosts playbook.yaml |
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: all | |
user: root | |
tasks: | |
- group: name=hiscon | |
- user: name=hiscon group=hiscon | |
- yum: name="{{ item }}" state=installed | |
with_items: | |
- httpd | |
- mysql-server | |
- service: name=mysqld enabled=yes state=started | |
- service: name=httpd enabled=yes state=started | |
- yum: name="{{ item }}" state=installed | |
with_items: | |
- vim-enhanced |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment