Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ---
  2. - hosts: prod
  3. serial: 20
  4. sudo: true
  5. max_fail_percentage: 0
  6. pre_tasks:
  7. - name: aptitude update
  8. shell: "aptitude update"
  9. - name: check for security updates
  10. shell: "/usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 2"
  11. register: security_update_result
  12. - debug: var=security_update_result
  13. - include: updates.yml
  14. when: security_update_result.stdout > "0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement