Editing Ansible: lineinfile
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 21: | Line 21: | ||
state: present | state: present | ||
[[insertafter:]] EOF | [[insertafter:]] EOF | ||
− | [[line:]] 'your text | + | [[line:]] 'your text to add at end of file' |
Line 33: | Line 33: | ||
== Related terms == | == Related terms == | ||
* <code>[[sed]]</code> | * <code>[[sed]]</code> | ||
− | |||
* [[Ansible playbooks examples]] | * [[Ansible playbooks examples]] | ||
* [[Puppet]] | * [[Puppet]] | ||
− | * | + | * [[replace]] module https://docs.ansible.com/ansible/latest/collections/ansible/builtin/replace_module.html#ansible-collections-ansible-builtin-replace-module |
* [[Template (Ansible)]] | * [[Template (Ansible)]] | ||
* <code>[[backup:]]</code> | * <code>[[backup:]]</code> | ||
* <code>[[ansible.builtin]]</code>: <code>[[ansible.builtin.file]]</code> | * <code>[[ansible.builtin]]</code>: <code>[[ansible.builtin.file]]</code> | ||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{sed}} | * {{sed}} | ||
− | |||
* {{Ansible modules}} | * {{Ansible modules}} | ||
+ | * {{ansible}} | ||
+ | |||
+ | |||
+ | |||
[[Category:Ansible]] | [[Category:Ansible]] |
Advertising: