Skip to content

Instantly share code, notes, and snippets.

@hoto
Created June 7, 2017 14:48
Show Gist options
  • Save hoto/ef2b79f23fcf73674903e4ecf7fbe90f to your computer and use it in GitHub Desktop.
Save hoto/ef2b79f23fcf73674903e4ecf7fbe90f to your computer and use it in GitHub Desktop.
append line in file using ansible
- name: kernel and python-chardet updates are disabled
replace:
path: /etc/dnf/dnf.conf
regexp: '(\s+exclude=.*)$'
replace: '\1 kernel* python-chardet'
become: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment