2017-05-27 18:09:50 +00:00
|
|
|
- name: Since f22, dnf has replaced yum, but ansible works with yum
|
|
|
|
command: dnf install -y yum
|
|
|
|
when: ansible_distribution == "Fedora" and ansible_distribution_version|int >= 22
|
|
|
|
|
2017-06-09 23:25:56 +00:00
|
|
|
- name: Install iiab-extra repos
|
2017-05-27 18:09:50 +00:00
|
|
|
template: backup=yes
|
2017-06-09 23:25:56 +00:00
|
|
|
dest=/etc/yum.repos.d/iiab-extra.repo
|
|
|
|
src=iiab-extra.repo
|
2017-05-27 18:09:50 +00:00
|
|
|
owner=root
|
|
|
|
mode=0666
|
2017-05-27 23:10:45 +00:00
|
|
|
when: is_redhat
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-06-09 23:25:56 +00:00
|
|
|
- name: Install iiab-testing repos
|
2017-05-27 18:09:50 +00:00
|
|
|
template: backup=yes
|
2017-06-09 23:25:56 +00:00
|
|
|
dest=/etc/yum.repos.d/iiab-testing.repo
|
|
|
|
src=iiab-testing.repo
|
2017-05-27 18:09:50 +00:00
|
|
|
owner=root
|
|
|
|
mode=0666
|
2017-05-27 23:10:45 +00:00
|
|
|
when: is_redhat
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
- name: Install rpmfusion-free-updates repo -- for exfat
|
|
|
|
template: dest=/etc/yum.repos.d/rpmfusion-free-updates.repo
|
|
|
|
src=rpmfusion-free-updates.repo
|
|
|
|
owner=root
|
|
|
|
mode=0666
|
|
|
|
when: ansible_distribution == "Fedora"
|
|
|
|
|
2017-06-09 23:25:56 +00:00
|
|
|
- name: Create /etc/iiab
|
|
|
|
file: path=/etc/iiab
|
2017-05-27 18:09:50 +00:00
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0755
|
|
|
|
state=directory
|
|
|
|
|
2017-07-04 20:27:44 +00:00
|
|
|
- name: Set XO model
|
2017-05-27 18:09:50 +00:00
|
|
|
set_fact:
|
|
|
|
phplib_dir: '{{ ansible_local["local_facts"]["phplib_dir"] }}'
|
|
|
|
xo_model: '{{ ansible_local["local_facts"]["xo_model"] }}'
|
|
|
|
|
|
|
|
- name: Install script to fully initialize network config, and/or collect data
|
2017-06-28 02:53:13 +00:00
|
|
|
# calling iiab-network-reset w/ snapshot name, stores info, but aborts reset
|
2017-05-27 18:09:50 +00:00
|
|
|
# intended as a convenience function for us
|
2017-06-28 02:53:13 +00:00
|
|
|
template: src=iiab-network-reset
|
2017-05-27 18:09:50 +00:00
|
|
|
dest=/usr/bin
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0755
|
|
|
|
|