mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
ansiblelint fixes - fqcn[action-core] - shell to ansible.builtin.shell
Replaces references to shell: with ansible.builtin.shell Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
home: "/var/lib/openqa"
|
||||
createhome: no
|
||||
system: yes
|
||||
shell: /sbin/nologin
|
||||
ansible.builtin.shell: /sbin/nologin
|
||||
when: "openqa_static_uid is defined"
|
||||
|
||||
- name: Remove old scratch repo directory
|
||||
@@ -250,7 +250,7 @@
|
||||
- config
|
||||
|
||||
- name: Initialize database
|
||||
shell: "/usr/share/openqa/script/initdb --user geekotest --init_database" # noqa 305
|
||||
ansible.builtin.shell: "/usr/share/openqa/script/initdb --user geekotest --init_database" # noqa 305
|
||||
register: initdb
|
||||
changed_when: "initdb.rc == 0"
|
||||
failed_when: "(initdb.rc > 0) and (initdb.stdout is not defined or initdb.stdout.find('already exists') == -1)"
|
||||
@@ -316,7 +316,7 @@
|
||||
register: templatesfif
|
||||
|
||||
- name: Dump existing config for checking changes
|
||||
shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-old.json || :"
|
||||
ansible.builtin.shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-old.json || :"
|
||||
when: "(gittests is defined) and (gittests is changed)"
|
||||
changed_when: "1 != 1"
|
||||
|
||||
@@ -342,7 +342,7 @@
|
||||
changed_when: "1 != 1"
|
||||
|
||||
- name: Check if the tests changed in previous step
|
||||
shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && diff <(jq -S . /tmp/tmpl-old.json) <(jq -S . /tmp/tmpl-new.json)"
|
||||
ansible.builtin.shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && diff <(jq -S . /tmp/tmpl-old.json) <(jq -S . /tmp/tmpl-new.json)"
|
||||
when: "(gittests is defined) and (gittests is changed)"
|
||||
register: testsdiff
|
||||
changed_when: "testsdiff.rc > 0"
|
||||
|
||||
@@ -56,13 +56,13 @@
|
||||
|
||||
# nmcli collection does not support tun type
|
||||
- name: Check whether tap device interface connection profiles exist
|
||||
shell: "(for i in {0..{{ openqa_workers | int }}}; do ip addr show tap$i || exit 1; done)"
|
||||
ansible.builtin.shell: "(for i in {0..{{ openqa_workers | int }}}; do ip addr show tap$i || exit 1; done)"
|
||||
register: tapsexist
|
||||
changed_when: "1 != 1"
|
||||
failed_when: "1 != 1"
|
||||
|
||||
- name: Create openvswitch interfaces for tap devices
|
||||
shell: "nmcli con add type tun mode tap owner $(id -u _openqa-worker) group $(getent group nogroup | cut -f3 -d:) con.int tap{{ item }} master tap{{ item }}"
|
||||
ansible.builtin.shell: "nmcli con add type tun mode tap owner $(id -u _openqa-worker) group $(getent group nogroup | cut -f3 -d:) con.int tap{{ item }} master tap{{ item }}"
|
||||
with_sequence: start=0 end={{ openqa_workers | int }}
|
||||
when: tapsexist.rc > 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user