← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2013467] [NEW] Ansible run_user ignored when distro install method is used

 

Public bug reported:

When Ansible module is used with `install_method: distro`, the value of
attribute `run_user:` is ignored and the whole Ansible playbook runs as
root.

The problem lies somewhere around [class
AnsiblePullDistro](https://github.com/canonical/cloud-
init/blob/main/cloudinit/config/cc_ansible.py#L150) which does not set
`self.run_user` unlike [class
AnsiblePullPip](https://github.com/canonical/cloud-
init/blob/main/cloudinit/config/cc_ansible.py#L116)

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/2013467

Title:
  Ansible run_user ignored when distro install method is used

Status in cloud-init:
  New

Bug description:
  When Ansible module is used with `install_method: distro`, the value
  of attribute `run_user:` is ignored and the whole Ansible playbook
  runs as root.

  The problem lies somewhere around [class
  AnsiblePullDistro](https://github.com/canonical/cloud-
  init/blob/main/cloudinit/config/cc_ansible.py#L150) which does not set
  `self.run_user` unlike [class
  AnsiblePullPip](https://github.com/canonical/cloud-
  init/blob/main/cloudinit/config/cc_ansible.py#L116)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/2013467/+subscriptions



Follow ups