fix risky-shell-pipe
This commit is contained in:
1 parent
adde811f47
commit
a3b772c543
4 files changed
+4
-4
No files matched your search
@@ -22,7 +22,7 @@
|
||||
|
||||
- name: Setect Interface
|
||||
when: hypervisor == "vmware"
|
||||
ansible.builtin.shell: "ip l | awk -F': ' '!/lo/{print $2; exit}'"
|
||||
ansible.builtin.shell: "set -o pipefail && ip l | awk -F': ' '!/lo/{print $2; exit}'"
|
||||
register: interface_name
|
||||
|
||||
- name: Set IP-Address
|
||||
|
||||
Reference in new issue
Block a user