more FQCN
This commit is contained in:
parent
e8e4660334
commit
d8db92eec5
@ -9,13 +9,13 @@
|
|||||||
installation_prefix: ./
|
installation_prefix: ./
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Remove existing public roles
|
- name: Remove existing public roles
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ installation_prefix }}{{ roles_installation_dir }}"
|
path: "{{ installation_prefix }}{{ roles_installation_dir }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: force_purge | bool
|
when: force_purge | bool
|
||||||
|
|
||||||
- name: Install all public roles and collections
|
- name: Install all public roles and collections
|
||||||
command: >
|
ansible.builtin.command: >
|
||||||
ansible-galaxy role install
|
ansible-galaxy role install
|
||||||
{{ ( force_purge | bool ) | ternary('--force','') }}
|
{{ ( force_purge | bool ) | ternary('--force','') }}
|
||||||
--role-file {{ installation_prefix }}roles/requirements.yml
|
--role-file {{ installation_prefix }}roles/requirements.yml
|
||||||
@ -24,7 +24,7 @@
|
|||||||
changed_when: '"Installing " in galaxy_install_role.stdout'
|
changed_when: '"Installing " in galaxy_install_role.stdout'
|
||||||
|
|
||||||
- name: Install needed collections
|
- name: Install needed collections
|
||||||
command: >
|
ansible.builtin.command: >
|
||||||
ansible-galaxy collection install
|
ansible-galaxy collection install
|
||||||
{{ ( force_purge | bool ) | ternary('--force-with-deps','') }}
|
{{ ( force_purge | bool ) | ternary('--force-with-deps','') }}
|
||||||
-r {{ installation_prefix }}collections/requirements.yml
|
-r {{ installation_prefix }}collections/requirements.yml
|
||||||
@ -33,13 +33,13 @@
|
|||||||
changed_when: '"Installing " in galaxy_install_collection.stdout'
|
changed_when: '"Installing " in galaxy_install_collection.stdout'
|
||||||
|
|
||||||
- name: cleanup old ssh known_hosts - remove
|
- name: cleanup old ssh known_hosts - remove
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "./tmp/known_hosts"
|
path: "./tmp/known_hosts"
|
||||||
state: absent
|
state: absent
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: cleanup old ssh known_hosts - blank
|
- name: cleanup old ssh known_hosts - blank
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "./tmp/known_hosts"
|
path: "./tmp/known_hosts"
|
||||||
state: touch
|
state: touch
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Check if ansible cannot be run here
|
- name: Check if ansible cannot be run here
|
||||||
stat:
|
ansible.builtin.stat:
|
||||||
path: /etc/no-ansible
|
path: /etc/no-ansible
|
||||||
register: no_ansible
|
register: no_ansible
|
||||||
|
|
||||||
@ -17,7 +17,7 @@
|
|||||||
fail_msg: "/etc/no-ansible exists - skipping run on this node"
|
fail_msg: "/etc/no-ansible exists - skipping run on this node"
|
||||||
|
|
||||||
- name: Enable the proper copr for gitea
|
- name: Enable the proper copr for gitea
|
||||||
command: "dnf copr enable nalika/gitea -y"
|
ansible.builtin.command: "dnf copr enable nalika/gitea -y"
|
||||||
check_mode: false
|
check_mode: false
|
||||||
changed_when: "1 != 1"
|
changed_when: "1 != 1"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user