Add a test persistent host
This commit is contained in:
parent
537e8f533e
commit
7a34249e3f
3 changed files with 38 additions and 0 deletions
9
inventory/host_vars/209.132.184.113
Normal file
9
inventory/host_vars/209.132.184.113
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
instance_type: m1.large
|
||||||
|
image: emi-B8793915
|
||||||
|
keypair: admin
|
||||||
|
security_group: webserver
|
||||||
|
zone: fedoracloud
|
||||||
|
hostbase: hostname_base-
|
||||||
|
public_ip: 192.168.3.113
|
||||||
|
root_auth_users: skvidal toshio
|
||||||
|
description: test instance, delete at will
|
|
@ -297,3 +297,4 @@ virthost-comm01.qa.fedoraproject.org
|
||||||
209.132.184.100
|
209.132.184.100
|
||||||
209.132.184.111
|
209.132.184.111
|
||||||
209.132.184.112
|
209.132.184.112
|
||||||
|
209.132.184.113
|
||||||
|
|
28
playbooks/hosts/209.132.184.113.yml
Normal file
28
playbooks/hosts/209.132.184.113.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
- name: check/create instance
|
||||||
|
hosts: 209.132.184.113
|
||||||
|
user: root
|
||||||
|
gather_facts: False
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- ${private}/vars.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: $tasks/persistent_cloud.yml
|
||||||
|
|
||||||
|
- name: provision instance
|
||||||
|
hosts: 209.132.184.113
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- ${private}/vars.yml
|
||||||
|
- ${vars}/${ansible_distribution}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: $tasks/cloud_setup_basic.yml
|
||||||
|
# fill in other actions/includes/etc here
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue