address more FQCN

This commit is contained in:
nazunalika 2022-03-27 19:00:34 -07:00
parent 375f217ba2
commit 7884b6e95d
Signed by: label
GPG Key ID: 6735C0E1BD65D048
4 changed files with 14 additions and 19 deletions

View File

@ -10,7 +10,7 @@
register: no_ansible
- name: Verify if we can run ansible
assert:
ansible.builtin.assert:
that:
- "not no_ansible.stat.exists"
success_msg: "We are able to run on this node"
@ -27,7 +27,7 @@
post_tasks:
- name: Touching run file that ansible has ran here
file:
ansible.builtin.files:
path: /var/log/ansible.run
state: touch
mode: '0644'

View File

@ -10,7 +10,7 @@
register: no_ansible
- name: Verify if we can run ansible
assert:
ansible.builtin.assert:
that:
- "not no_ansible.stat.exists"
success_msg: "We are able to run on this node"
@ -27,7 +27,7 @@
post_tasks:
- name: Touching run file that ansible has ran here
file:
ansible.builtin.files:
path: /var/log/ansible.run
state: touch
mode: '0644'

View File

@ -2,34 +2,29 @@
- name: Update Gitea
hosts: all
become: true
vars:
gitea_upgrade: "true"
pre_tasks:
- name: Check if ansible cannot be run here
stat:
ansible.builtin.stat:
path: /etc/no-ansible
register: no_ansible
- name: Verify if we can run ansible
assert:
ansible.builtin.assert:
that:
- "not no_ansible.stat.exists"
success_msg: "We are able to run on this node"
fail_msg: "/etc/no-ansible exists - skipping run on this node"
- name: Enable the proper copr for gitea
command: "dnf copr enable nalika/gitea -y"
check_mode: false
changed_when: "1 != 1"
tasks:
- name: Update Gitea
dnf:
name: gitea
state: latest
roles:
- role: lazyutilitynet.ansible_gitea.gitea_install
state: present
post_tasks:
- name: Touching run file that ansible has ran here
file:
ansible.builtin.file:
path: /var/log/ansible.run
state: touch
mode: '0644'

View File

@ -15,7 +15,7 @@
register: no_ansible
- name: Verify if we can run ansible
assert:
ansible.builtin.assert:
that:
- "not no_ansible.stat.exists"
success_msg: "We are able to run on this node"
@ -40,7 +40,7 @@
post_tasks:
- name: Touching run file that ansible has ran here
file:
ansible.builtin.files:
path: /var/log/ansible.run
state: touch
mode: '0644'