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

ansible-playbook: error: unrecognized arguments: -s -U

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • ansible-plugin
    • None
    • Ansible plugin Version148.v6b_13c6de3a_47
      JenkinsVersion 2.375.2

      When i check sudo on job.

      Job fail unrecognized arguments for ansible-playbook
      sshpass ******** ansible-playbook cping.yml -i /tmp/inventory14306902822679173343.ini -s -U ansible-user -f 5 -u ansible-user -k
      usage: ansible-playbook [-h] [--version] [-v] [--private-key PRIVATE_KEY_FILE]
      [-u REMOTE_USER] [-c CONNECTION] [-T TIMEOUT]
      [--ssh-common-args SSH_COMMON_ARGS]
      [--sftp-extra-args SFTP_EXTRA_ARGS]
      [--scp-extra-args SCP_EXTRA_ARGS]
      [--ssh-extra-args SSH_EXTRA_ARGS]
      [-k | --connection-password-file CONNECTION_PASSWORD_FILE]
      [--force-handlers] [--flush-cache] [-b]
      [--become-method BECOME_METHOD]
      [--become-user BECOME_USER]
      [-K | --become-password-file BECOME_PASSWORD_FILE]
      [-t TAGS] [--skip-tags SKIP_TAGS] [-C]
      [--syntax-check] [-D] [-i INVENTORY] [--list-hosts]
      [-l SUBSET] [-e EXTRA_VARS] [--vault-id VAULT_IDS]
      [--ask-vault-password | --vault-password-file VAULT_PASSWORD_FILES]
      [-f FORKS] [-M MODULE_PATH] [--list-tasks]
      [--list-tags] [--step] [--start-at-task START_AT_TASK]
      playbook [playbook ...]
      ansible-playbook: error: unrecognized arguments: -s -U ansible-user

            Unassigned Unassigned
            cedcuvelier Cédric
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: