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

Ansible has deprecated sudo in favor of become

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Ansible 1.9 introduced the become flag "b" and the become user flag "-become-user". The same release deprecated the sudo flag "-s" and the sudo user flag "-U". The sudo options generate a warning starting in Ansible 2.4 since they are scheduled to be removed in 2.6.

      The ansible-plugin should support the newer become command line flags.

        Attachments

          Issue Links

            Activity

            Show
            michaelcresswell Michael Cresswell added a comment - Fixed by https://github.com/jenkinsci/ansible-plugin/pull/17
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: michaelcresswell
            Path:
            README.md
            src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java
            src/main/java/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder.java
            src/main/java/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandInvocation.java
            src/main/java/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder.java
            src/main/java/org/jenkinsci/plugins/ansible/AnsiblePlaybookInvocation.java
            src/main/java/org/jenkinsci/plugins/ansible/jobdsl/AnsibleJobDslExtension.java
            src/main/java/org/jenkinsci/plugins/ansible/jobdsl/context/AnsibleContext.java
            src/main/java/org/jenkinsci/plugins/ansible/workflow/AnsiblePlaybookStep.java
            src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/config.jelly
            src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-become.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-becomeUser.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-sudo.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-sudoUser.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/config.jelly
            src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-become.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-becomeUser.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-sudo.html
            src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-sudoUser.html
            src/main/resources/org/jenkinsci/plugins/ansible/workflow/AnsiblePlaybookStep/config.jelly
            src/test/java/org/jenkinsci/plugins/ansible/jobdsl/JobDslIntegrationTest.java
            src/test/resources/jobdsl/legacyPlaybook.groovy
            src/test/resources/jobdsl/playbook.groovy
            http://jenkins-ci.org/commit/ansible-plugin/b7913707c27e94d34e2ca4b730fbc928ce0418c8
            Log:
            [FIXED JENKINS-48498] Add become and become-user options (#17)

            • [FIXED JENKINS-48498] Add become and become-user options since sudo is deprecated. Mention sudo deprecation in UI but leave in place for now for backwards compatibility
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: michaelcresswell Path: README.md src/main/java/org/jenkinsci/plugins/ansible/AbstractAnsibleInvocation.java src/main/java/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder.java src/main/java/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandInvocation.java src/main/java/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder.java src/main/java/org/jenkinsci/plugins/ansible/AnsiblePlaybookInvocation.java src/main/java/org/jenkinsci/plugins/ansible/jobdsl/AnsibleJobDslExtension.java src/main/java/org/jenkinsci/plugins/ansible/jobdsl/context/AnsibleContext.java src/main/java/org/jenkinsci/plugins/ansible/workflow/AnsiblePlaybookStep.java src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/config.jelly src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-become.html src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-becomeUser.html src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-sudo.html src/main/resources/org/jenkinsci/plugins/ansible/AnsibleAdHocCommandBuilder/help-sudoUser.html src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/config.jelly src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-become.html src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-becomeUser.html src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-sudo.html src/main/resources/org/jenkinsci/plugins/ansible/AnsiblePlaybookBuilder/help-sudoUser.html src/main/resources/org/jenkinsci/plugins/ansible/workflow/AnsiblePlaybookStep/config.jelly src/test/java/org/jenkinsci/plugins/ansible/jobdsl/JobDslIntegrationTest.java src/test/resources/jobdsl/legacyPlaybook.groovy src/test/resources/jobdsl/playbook.groovy http://jenkins-ci.org/commit/ansible-plugin/b7913707c27e94d34e2ca4b730fbc928ce0418c8 Log: [FIXED JENKINS-48498] Add become and become-user options (#17) [FIXED JENKINS-48498] Add become and become-user options since sudo is deprecated. Mention sudo deprecation in UI but leave in place for now for backwards compatibility

              People

              • Assignee:
                sirot Jean-Christophe Sirot
                Reporter:
                michaelcresswell Michael Cresswell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: