mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
renae temp f17 to fedora
add a conditional for the infrastructure repo
This commit is contained in:
@@ -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
|
||||
hosts: lockbox01.phx2.fedoraproject.org
|
||||
user: root
|
||||
@@ -8,8 +11,8 @@
|
||||
- ${private}/vars.yml
|
||||
vars:
|
||||
- keypair: admin
|
||||
- image: emi-B5BA397D
|
||||
- instance_type: c1.medium
|
||||
- image: $f18_qcow_id:
|
||||
- instance_type: m1.small
|
||||
- security_group: default
|
||||
|
||||
tasks:
|
||||
@@ -26,8 +29,8 @@
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/growroot_cloud.yml
|
||||
- include: $tasks/cloud_setup_basic.yml
|
||||
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
||||
@@ -1,6 +1,7 @@
|
||||
- name: add infra repo
|
||||
action: get_url url=http://infrastructure.fedoraproject.org/el/infrastructure.repo dest=/etc/yum.repos.d/
|
||||
|
||||
only_if: '$is_rhel'
|
||||
|
||||
- name: install cloud-utils
|
||||
action: yum name=cloud-utils state=present
|
||||
|
||||
|
||||
Reference in New Issue
Block a user