You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Maybe this is more of a question, than a bug, but here goes.
I have installed a headless Debian 11 on a VM, to test out this role. And when running the os_hardening role I get stuck pretty early.
Expected behavior
That it just executes the role without dramas.
Actual behavior
In TASK [devsec.hardening.os_hardening : Install auditd package | package-08] I get the following error:
fatal: [192.168.122.63]: FAILED! => {"cache_update_time": 1665071603, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'auditd=1:3.0-2'' failed: E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)\nE: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?\n", "rc": 100, "stderr": "E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)\nE: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?\n", "stderr_lines": ["E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)", "E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?"], "stdout": "", "stdout_lines": []}
I assume this is caused by not being root (or with similar access).
In fact there's not even sudo installed per default. Is this expected by this role? Or how am I intended to handle parts of this, which requires privilege escalation?
Describe the bug
Maybe this is more of a question, than a bug, but here goes.
I have installed a headless Debian 11 on a VM, to test out this role. And when running the
os_hardening
role I get stuck pretty early.Expected behavior
That it just executes the role without dramas.
Actual behavior
In
TASK [devsec.hardening.os_hardening : Install auditd package | package-08]
I get the following error:I assume this is caused by not being root (or with similar access).
In fact there's not even
sudo
installed per default. Is this expected by this role? Or how am I intended to handle parts of this, which requires privilege escalation?ansible [core 2.13.4]
config file = /home/tue/.ansible.cfg
configured module search path = ['/home/tue/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/tue/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/tue/.ansible/collections:/usr/share/ansible/collections
executable location = /home/tue/.local/bin/ansible
python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
jinja version = 3.1.2
libyaml = True
latest
The text was updated successfully, but these errors were encountered: