start using FQCN

This commit is contained in:
nazunalika 2022-03-27 19:48:48 -07:00
parent 6f77c0e515
commit 85a3cc2edf
Signed by: label
GPG Key ID: 6735C0E1BD65D048
6 changed files with 22 additions and 21 deletions

View File

@ -10,4 +10,5 @@ galaxy_info:
versions: versions:
- 8 - 8
galaxy_tags: [] galaxy_tags: []
dependencies: [] dependencies:
- ansible.posix

View File

@ -3,7 +3,7 @@
# sysctl and limits # sysctl and limits
- name: set highmem_is_dirtyable on armv7 builders if applicable - name: set highmem_is_dirtyable on armv7 builders if applicable
sysctl: ansible.builtin.sysctl:
name: vm.highmem_is_dirtyable name: vm.highmem_is_dirtyable
value: 1 value: 1
state: present state: present
@ -12,7 +12,7 @@
when: ansible_architecture == 'armv7l' when: ansible_architecture == 'armv7l'
- name: Set nofile limit to 4096 - name: Set nofile limit to 4096
copy: ansible.builtin.copy:
src: 00-limit.conf src: 00-limit.conf
dest: /etc/security/limits.d/00-limit.conf dest: /etc/security/limits.d/00-limit.conf
owner: root owner: root
@ -21,7 +21,7 @@
# oz and plugins # oz and plugins
- name: OZ Config - name: OZ Config
template: ansible.builtin.template:
src: oz.cfg.j2 src: oz.cfg.j2
dest: /etc/oz/oz.cfg dest: /etc/oz/oz.cfg
owner: root owner: root
@ -30,7 +30,7 @@
notify: restart_kojid notify: restart_kojid
- name: runroot config - name: runroot config
template: ansible.builtin.template:
src: runroot.conf.j2 src: runroot.conf.j2
dest: /etc/kojid/plugins/runroot.conf dest: /etc/kojid/plugins/runroot.conf
owner: root owner: root
@ -40,7 +40,7 @@
# kojid base configuration # kojid base configuration
- name: Configure koji.conf - name: Configure koji.conf
template: ansible.builtin.template:
src: koji.conf.j2 src: koji.conf.j2
dest: /etc/koji.conf dest: /etc/koji.conf
owner: root owner: root
@ -49,7 +49,7 @@
notify: restart_kojid notify: restart_kojid
- name: Configure kojid - name: Configure kojid
template: ansible.builtin.template:
src: kojid.conf.j2 src: kojid.conf.j2
dest: /etc/kojid/kojid.conf dest: /etc/kojid/kojid.conf
owner: root owner: root
@ -59,7 +59,7 @@
# systemd override # systemd override
- name: Override kojid.service - name: Override kojid.service
copy: ansible.builtin.copy:
src: kojid.service src: kojid.service
dest: /etc/systemd/system/kojid.service dest: /etc/systemd/system/kojid.service
owner: root owner: root

View File

@ -1,20 +1,20 @@
--- ---
# Install packages # Install packages
- name: Install required packages - name: Install required packages
yum: ansible.builtin.dnf:
name: "{{ kojid_packages }}" name: "{{ kojid_packages }}"
state: present state: present
# armv7l specific # armv7l specific
- name: Install libkcapi for increased armv7 sockets - name: Install libkcapi for increased armv7 sockets
yum: ansible.builtin.dnf:
name: libkcapi name: libkcapi
state: present state: present
when: ansible_architecture == 'armv7l' when: ansible_architecture == 'armv7l'
# x86_64 specific # x86_64 specific
- name: Install x86_64 specific packages - name: Install x86_64 specific packages
yum: ansible.builtin.dnf:
name: name:
- python3-osbs-client - python3-osbs-client
state: present state: present

View File

@ -1,7 +1,7 @@
--- ---
- name: Enabling SELinux booleans - name: Enabling SELinux booleans
seboolean: ansible.posix.seboolean:
name: "{{ item }}" name: "{{ item }}"
persistent: true persistent: true
state: true state: true

View File

@ -1,7 +1,7 @@
--- ---
# Storage # Storage
- name: Ensure the koji mountpoint exists - name: Ensure the koji mountpoint exists
file: ansible.builtin.file:
path: "{{ kojid_mount }}" path: "{{ kojid_mount }}"
state: directory state: directory
owner: apache owner: apache
@ -9,7 +9,7 @@
mode: '0755' mode: '0755'
- name: Mount the NFS store - name: Mount the NFS store
mount: ansible.builtin.mount:
path: "{{ kojid_mount }}" path: "{{ kojid_mount }}"
src: "{{ kojid_nfs_path }}" src: "{{ kojid_nfs_path }}"
fstype: nfs fstype: nfs

View File

@ -28,37 +28,37 @@
# group: mock # group: mock
- name: mockbuilder user - name: mockbuilder user
user: ansible.builtin.user:
name: mockbuilder name: mockbuilder
groups: mock groups: mock
- name: mockbuilder ssh key - name: mockbuilder ssh key
authorized_key: ansible.posix.authorized_key:
user: mockbuilder user: mockbuilder
key: "{{ mockbuilder_pub_key }}" key: "{{ mockbuilder_pub_key }}"
when: mockbuilder_pub_key is defined when: mockbuilder_pub_key is defined
- name: kojibuilder user - name: kojibuilder user
user: ansible.builtin.user:
name: kojibuilder name: kojibuilder
groups: mock groups: mock
- name: kojibuilder ssh key - name: kojibuilder ssh key
authorized_key: ansible.posix.authorized_key:
user: kojibuilder user: kojibuilder
key: "{{ kojibuilder_pub_key }}" key: "{{ kojibuilder_pub_key }}"
when: kojibuilder_pub_key is defined when: kojibuilder_pub_key is defined
# We need the apache user for NFS # We need the apache user for NFS
- name: apache group - name: apache group
group: ansible.builtin.group:
name: apache name: apache
gid: 48 gid: 48
system: true system: true
state: present state: present
- name: apache user - name: apache user
user: ansible.builtin.user:
name: apache name: apache
uid: 48 uid: 48
createhome: false createhome: false