ansible-role-yedit
ansible-role-yedit copied to clipboard
Ansible Role for Yaml editing
Using Ubuntu 18.04 I get the following error: ``` An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named yaml...
Take this `file.yml`: ```yaml variables: var1: VAR1 #This is another definition other: var2: VAR2 ``` Use this task: ```yaml - name: add variable yedit: src: file.yml key: variables.var3 value: VAR3...
adds allow_duplicate_keys option better would be to switch completely to new ruamel API
If the type of an argument is not set, ansible defaults to treating it as a string. As such it gets run through a validator that converts the value to...
When running the following code it reports as failed. The value is correctly updated. When the 'hash' already has the matching value it reports "OK" or unchanged. ```yaml - name:...
I have the following in an ansible task: ``` - block: ... - name: Save egress interface to host_vars yedit: src: "{{ inventory_dir }}/host_vars/{{ inventory_hostname }}.yml" key: egress.iface value: "{{...
Any particular reason as to why this isn't submitted upstream to be a part of the core modules?
The last test is currently broken and I am not sure why: ``` TASK [test append to top level] ********************************************************************************************************************************************************************************** An exception occurred during task execution. To see the full...
Bases on an IRC discussion we had on #ansible-devel it was suggested to rename the module to make it easy for users to use it, especially as we aim to...
For example, we have access to only one file in /etc/ directory and would like to modify it. Original library try to create a temp file inside this directory and...