1. 06 Nov, 2012 1 commit
  2. 03 Nov, 2012 1 commit
  3. 31 Oct, 2012 2 commits
  4. 30 Oct, 2012 1 commit
  5. 16 Oct, 2012 1 commit
  6. 12 Oct, 2012 1 commit
  7. 10 Oct, 2012 1 commit
  8. 01 Oct, 2012 1 commit
  9. 30 Sep, 2012 1 commit
  10. 19 Sep, 2012 1 commit
  11. 18 Sep, 2012 1 commit
  12. 17 Sep, 2012 3 commits
  13. 08 Sep, 2012 1 commit
  14. 06 Sep, 2012 2 commits
    • Add /proc/cmdline information to the default facts · d158218c
      The use-case here is that based on information in the /proc/cmdline certain actions can be taken.
      
      A practical example in our case is that we have a play at the end of the provisioning phase that reboots the system. Since we don't want to accidentally reboot a system (or restart the network) on a production machine, having a way to separate an Anaconda post-install (sshd in chroot) with a normal system is a good way to make that distinction.
      
          ---
          - name: reboot
            hosts: all
            tasks:
            - action: command init 6
              only_if: "not '${ansible_cmdline.BOOT_IMAGE}'.startswith('$')"
      
      A practical problem here is the fact that we cannot simply check whether it is set or empty:
      
          ---
          - name: reboot
            hosts: all
            tasks:
            - action: command init 6
              only_if: "'${ansible_cmdline.BOOT_IMAGE}'"
      
      If ansible_cmdline was a string, a simple only_if: "'${ansible_cmdline}'.find(' BOOT_IMAGE=')" was an option, but still not very "beautiful" :-/
      
      This implementation uses shlex.split() and uses split(sep, maxsplit=1).
      Dag Wieers committed
  15. 05 Sep, 2012 1 commit
  16. 02 Sep, 2012 1 commit
  17. 30 Aug, 2012 1 commit
  18. 28 Aug, 2012 1 commit
  19. 24 Aug, 2012 1 commit
  20. 20 Aug, 2012 1 commit
  21. 17 Aug, 2012 1 commit
  22. 15 Aug, 2012 1 commit
  23. 14 Aug, 2012 2 commits
  24. 12 Aug, 2012 2 commits
  25. 11 Aug, 2012 6 commits
  26. 08 Aug, 2012 2 commits
  27. 07 Aug, 2012 1 commit
  28. 03 Aug, 2012 1 commit