Replies: 1 comment
-
|
Could you adjust the formatting of your code, please? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have several stanzas which use a cmd.run to fix the /etc/default/grub file. I'd like to have an onchanges_any to run the grub2-mkconfig, but not sure how I would reference those stanzas? I had the stanzas using file.replace, but it was confusing the other people on the team so they changed them to cmd.run and running sed commands. I had the grub2-mkconfig stanza as:
make_config_if_changed: cmd.run: - name: /usr/sbin/grub2-mkconfig -o {{ BOOT }} - onchanges_any: - file: remove_ipv6_disable - file: slub - file remove_crashkernelwhich referenced each file.replace stanza. If the stanzas change to cmd.run, would I change the onchanges_any to:
- onchanges_any: - cmd: remove_ipv6_disable - cmd: slub - cmd: remove_crashkernel?
Beta Was this translation helpful? Give feedback.
All reactions