collection of ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
475 B

- name: refresh apt cache and update packages
apt:
name: "*"
state: latest
update_cache: yes
- name: manage packages
apt:
name: "{{ package.name }}"
state: "{{ package.state }}"
loop: "{{ bootstrap_packages[ansible_distribution|lower] }}"
loop_control:
loop_var: package
- name: edit sudoers
lineinfile:
dest: /etc/sudoers
state: present
regexp: '^%sudo'
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
validate: 'visudo -cf %s'