Fix the fedora host detection

pull/13663/head
Toshio Kuratomi 9 years ago
parent eb606cc18b
commit 6d9235e36d

@ -28,8 +28,6 @@
- name: Wait a little longer for centos - name: Wait a little longer for centos
pause: seconds=20 pause: seconds=20
- debug: var=ec2.results
- name: Add hosts group temporary inventory group with pem path - name: Add hosts group temporary inventory group with pem path
add_host: add_host:
name: "{{ item.1.platform }} {{ ec2.results[item.0]['instances'][0]['public_ip'] }}" name: "{{ item.1.platform }} {{ ec2.results[item.0]['instances'][0]['public_ip'] }}"

@ -36,7 +36,7 @@
tasks: tasks:
- name: Install packages that let setup and package manager modules run - name: Install packages that let setup and package manager modules run
raw: dnf install -y python2 python2-dnf libselinux-python raw: dnf install -y python2 python2-dnf libselinux-python
when: "'{{ inventory_hostname }}' == 'fedora-23-x86_64'" when: "'fedora-23' in '{{ inventory_hostname }}'"
- hosts: dynamic_hosts - hosts: dynamic_hosts
sudo: true sudo: true

Loading…
Cancel
Save