ansible/site.yml

39 lines
1.6 KiB
YAML
Executable File

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- import_playbook: provision.yml
- hosts: all
pre_tasks:
- name: Get public IP
ipify_facts:
tags: [ always ]
roles:
- role: awscreds
tags: [ common, dns ]
- role: base-user
vars:
user_username: salt
user_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
37666131343936663962386535343939373161343337383436613961303637376136633736353533
3366623536646563383563373265313134663464396231370a303033353661336436386561366139
30393536393634653566646636366436656435623534626266343632313336336336346131383361
3366343932383930350a383637646261373135376138633533306530306339316235353262356135
34626466363266616265653064333365663663306330666632343864373335626265323230633331
33623431633665353964623437636231623366383733626266353162633762373035376638663936
62383065653836366431316461663862393130653761643937376565366435646665313961663534
64303363653631653433343361616635373966326433663466636164613062343561333036613937
35616666633737356331653632323639373330396433366639326466373639313630
tags: [ common, user ]
- hosts: 9iron.club
roles:
- role: base-snmpd
tags: [ common, snmpd ]
- role: influxdb
tags: [ common, influxdb ]
- import_playbook: playbooks/dns.yml
- import_playbook: playbooks/dbservers.yml
- import_playbook: playbooks/webservers.yml
- import_playbook: playbooks/gameservers.yml
- import_playbook: playbooks/home.yml