Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62508

Add become_flag option

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ansible-plugin
    • None

      Hi,

      become_flags
      (at play or task level) permit the use of specific flags for the tasks or role. One common use is to change the user to nobody when the shell is set to no login. Added in Ansible 2.2.

      Example:
      become_flags: "-i"

      So we can load the .bashrc / .bash_profile to have the commands available in the PATH, etc.

      Thank you for this great plugin. I have made a task scheduler for cronjobs and ansible playbooks with monitoring of zabbix and your plugin was crucial.

            sirot Jean-Christophe Sirot
            gothicx Marco Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: