Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Last active August 29, 2015 14:26
Show Gist options
  • Save netmarkjp/1fe5758a48f3b0b462ca to your computer and use it in GitHub Desktop.
Save netmarkjp/1fe5758a48f3b0b462ca to your computer and use it in GitHub Desktop.
hiscon201508
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
- 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