If Im trying to install any packages from awx console using ansible playbook ,which pull it from git.
But its giving the below error in local ubuntu machine.
/bin/sh: apt: command not found", "stderr_lines": ["/bin/sh: apt: command not found"], "stdout": "", "stdout_lines
or sometimes.
changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc
its working with yum package but not with opt package ,what might be the reason , please help on this.
If Im trying to install any packages from awx console using ansible playbook ,which pulls it from github.
- hosts: all
become: yes
become_method: sudo
tasks:
- name: ensure apache is at the latest version
apt: name={{ item }} update_cache=yes
with_items:
- apache2
- name: ensure apache is at the latest version
apt: name={{ item }} update_cache=yes
with_items:
/bin/sh: apt: command not found", "stderr_lines": ["/bin/sh: apt: command not found"], "stdout": "", "stdout_lines