Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

remote_user not working #23

@rgilmiyarov

Description

@rgilmiyarov
SUMMARY
ISSUE TYPE
  • Bug Report
ANSIBLE VERSION
ansible [core 2.11.2]
  config file = None
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/user/.local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/user/.local/bin/ansible
  python version = 3.8.10 (default, Jun  2 2021, 10:49:15) [GCC 9.4.0]
  jinja version = 2.10.1
  libyaml = True

CONFIGURATION
dependency:
  name: galaxy
driver:
  name: vmware
  vcenter_hostname: vcenter_hostname
  vcenter_username: vcenter_username
  vcenter_password: vcenter_password
  validate_certs: false
  datacenter: datacenter
  esxi_hostname: esxi_hostname
  folder: "/folder"
  vm_username: root
  vm_password: password
  instance_os_type: linux
platforms:
  - name: molecule-test
    template: "rhel_template_vm"
    resource_pool: rpool
    hardware:
      num_cpus: 2
      memory_mb: 4096
    networks:
      - name: VM_168.1.0/24_ID1
        ip: 192.168.1.100
        netmask: 255.255.255.0
        gateway: 192.168.1.1
provisioner:
  name: ansible
verifier:
  name: ansible
lint: |
  set -e
  yamllint .
  ansible-lint
  flake8


OS / ENVIRONMENT
STEPS TO REPRODUCE
- hosts: all
  tasks:
    - debug: var=ansible_user

- hosts: all
  remote_user: ansible
  tasks:
    - debug: var=ansible_user
EXPECTED RESULTS
TASK [debug] *******************************************************************
ok: [molecule-test] => {
    "ansible_user": "root"
}

TASK [debug] *******************************************************************
ok: [molecule-test] => {
    "ansible_user": "ansible"
}

ACTUAL RESULTS
TASK [debug] *******************************************************************
ok: [molecule-test] => {
    "ansible_user": "root"
}

TASK [debug] *******************************************************************
ok: [molecule-test] => {
    "ansible_user": "root"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions