- include: setup-redhat.yml
when: ansible_distribution == 'RedHat'
+# configure fedora specific things
+- include: setup-fedora.yml
+ when: ansible_distribution == "Fedora"
+
# configure pip to use our mirror
- include: pip.yml
tags:
--- /dev/null
+---
+- include: imitate_ubuntu.yml
+
+- name: Set grub config.
+ template:
+ src: grub
+ dest: /etc/default/grub
+ owner: root
+ group: root
+ mode: 0644
+
+- name: Disable firewalld
+ service:
+ name: firewalld
+ state: stopped
--- /dev/null
+---
+# this is needed for the rpm_key module so it can
+# figure out if the key you're adding is already
+# installed or not.
+- name: Install GPG
+ yum:
+ name: gpg
+ state: present
+
+- name: Install GPG keys
+ rpm_key:
+ state: present
+ key: "{{ item }}"
+ validate_certs: no
+ with_items:
+ - 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'
+ - 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc'
+ register: gpg_keys
with_dict: yum_repos
when: yum_repos.keys() | length > 0
+- include: gpg_keys.yml
+ when: ansible_distribution == "Fedora"
+ tags:
+ - gpg-keys
+
- name: Clean yum cache
shell: yum clean all
changed_when: false
- when: repo_file and repo_file.changed
+ when: (repo_file and repo_file.changed) or
+ (gpg_keys and gpg_keys.changed)
--- /dev/null
+# {{ ansible_managed }}
+GRUB_DEFAULT=saved
+GRUB_TIMEOUT=5
+GRUB_DISABLE_LINUX_UUID="true"