renae temp f17 to fedora
add a conditional for the infrastructure repo
This commit is contained in:
parent
5c014479c7
commit
a257bbece0
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# setup a transient fedora instance
|
||||||
|
# optionally can take --extra-vars="hostbase=hostnamebase root_auth_users='user1 user2 user3'"
|
||||||
|
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: lockbox01.phx2.fedoraproject.org
|
hosts: lockbox01.phx2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
|
@ -8,8 +11,8 @@
|
||||||
- ${private}/vars.yml
|
- ${private}/vars.yml
|
||||||
vars:
|
vars:
|
||||||
- keypair: admin
|
- keypair: admin
|
||||||
- image: emi-B5BA397D
|
- image: $f18_qcow_id:
|
||||||
- instance_type: c1.medium
|
- instance_type: m1.small
|
||||||
- security_group: default
|
- security_group: default
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -26,8 +29,8 @@
|
||||||
- ${vars}/${ansible_distribution}.yml
|
- ${vars}/${ansible_distribution}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- include: $tasks/growroot_cloud.yml
|
||||||
- include: $tasks/cloud_setup_basic.yml
|
- include: $tasks/cloud_setup_basic.yml
|
||||||
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: $handlers/restart_services.yml
|
- include: $handlers/restart_services.yml
|
|
@ -1,6 +1,7 @@
|
||||||
- name: add infra repo
|
- name: add infra repo
|
||||||
action: get_url url=http://infrastructure.fedoraproject.org/el/infrastructure.repo dest=/etc/yum.repos.d/
|
action: get_url url=http://infrastructure.fedoraproject.org/el/infrastructure.repo dest=/etc/yum.repos.d/
|
||||||
|
only_if: '$is_rhel'
|
||||||
|
|
||||||
- name: install cloud-utils
|
- name: install cloud-utils
|
||||||
action: yum name=cloud-utils state=present
|
action: yum name=cloud-utils state=present
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue