Commit 05f2caf3 authored by Jürgen Haas's avatar Jürgen Haas

Allow to turn off node updates

parent c72a84b7
......@@ -89,6 +89,7 @@
- name: Upgrade Node packages
node_update:
mode: upgrade
ignore: '{{ sanity_ignore_node|default(no) }}'
register: executed_node_updates
ignore_errors: yes
notify:
......@@ -376,6 +377,7 @@
- name: Check for available Node updates
node_update:
mode: check
ignore: '{{ sanity_ignore_node|default(no) }}'
register: available_node_updates
notify:
- List available updates
......
......@@ -7,10 +7,13 @@ from subprocess import Popen, PIPE, STDOUT
def main():
module = AnsibleModule(
argument_spec=dict(
mode=dict(required=False, default='check')
mode=dict(required=False, default='check'),
ignore=dict(required=False, default=False)
),
supports_check_mode=False
)
if module.params['ignore']:
module.exit_json(changed=False, result='Ignored')
mode = module.params['mode']
process = Popen(['which', 'ncu'], stdout=PIPE, stderr=STDOUT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment