feat: opdracht 1
This commit is contained in:
13
opdracht-1/main.yml
Normal file
13
opdracht-1/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: Install Apache2 without apt
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
tasks:
|
||||
|
||||
- name: Install apache2 using command
|
||||
ansible.builtin.command: apt-get install -y apache2
|
||||
register: apache_install
|
||||
changed_when: "'is already the newest version' not in apache_install.stdout"
|
||||
|
||||
- name: fail
|
||||
ansible.builtin.command: /bin/false
|
Reference in New Issue
Block a user