groot/tasks/main.yml

29 lines
537 B
YAML
Raw Normal View History

2024-11-08 16:14:46 +01:00
---
- name: groot | copy bash-completion
copy:
src: bash_completion
dest: /etc/bash_completion.d/groot
owner: root
group: root
mode: 0644
tags: ['groot']
- name: groot | copy script
copy:
src: groot
dest: /usr/local/bin/groot
owner: root
group: root
mode: 0755
tags: ['groot']
- name: groot | create sudo priv
template:
src: sudoers.j2
dest: /etc/sudoers.d/groot
owner: root
group: root
mode: 0440
validate: "/usr/sbin/visudo -cf %s"
with_dict: "{{ groot }}"