fix risky-shell-pipe
This commit is contained in:
1 parent
adde811f47
commit
a3b772c543
4 files changed
+4
-4
No files matched your search
@@ -12,7 +12,7 @@
|
||||
|
||||
- name: Generate Random MAC Address
|
||||
delegate_to: localhost
|
||||
ansible.builtin.shell: openssl rand -hex 5 | sed 's/\(..\)/\1:/g; s/.$//' | sed 's/^/02:/'
|
||||
ansible.builtin.shell: set -o pipefail && openssl rand -hex 5 | sed 's/\(..\)/\1:/g; s/.$//' | sed 's/^/02:/'
|
||||
changed_when: false
|
||||
register: mac_address_output
|
||||
|
||||
|
||||
Reference in new issue
Block a user