--- - hosts: all gather_facts: false become: yes tags: - vagrant_setup tasks: - name: change centos/7 vagrant box name to rhel7 replace: regexp: "centos/7" replace: "rhel7" dest: "{{ change_dir }}/vagrant_variables.yml" when: change_dir is defined - hosts: all gather_facts: true become: yes tasks: - name: check if it is Atomic host stat: path=/run/ostree-booted register: stat_ostree always_run: true - name: set fact for using Atomic host set_fact: is_atomic: '{{ stat_ostree.stat.exists }}' - hosts: mons gather_facts: false become: yes tasks: - name: install ceph mon repo yum_repository: name: ceph-mon description: repo for rhcs ceph-mon baseurl: "{{ repo_url }}/MON/x86_64/os/" gpgcheck: no when: - not is_atomic - hosts: osds gather_facts: false become: yes tasks: - name: install ceph osd repo yum_repository: name: ceph-osd description: repo for rhcs ceph-osd baseurl: "{{ repo_url }}/OSD/x86_64/os/" gpgcheck: no when: - not is_atomic - hosts: mdss:rgws:clients gather_facts: false become: yes tasks: - name: install ceph tools repo yum_repository: name: ceph-osd description: repo for rhcs ceph tools baseurl: "{{ repo_url }}/TOOLS/x86_64/os/" gpgcheck: no when: - not is_atomic