So, i’m creating a role to auto install megatools, but i’m having trouble using sudo in a specific command, got the task / playbook and sh output here: https://gist.github.com/mvdpoel/288ef389abc5329e3ebd
Just works:
- name: Ensure packages are installed (Debian Family).
sudo: true
apt: >
name={{ item }}
state=installed
with_items: __required_packages
when: ansible_os_family == ‘Debian’
Does NOT work:
- name: “Make install”
sudo: yes
shell: “make install”
args:
chdir: “/home/{{ansible_ssh_user}}/{{ src_folder.stdout }}”
the apt module seems to do fine, but when i do make install it whines over permission denied
two tasks in the same book, no useful errors, no useful logs, nothing
sooo, wtf