ansible/roles/server/tasks/main.yml

10 lines
251 B
YAML

- name: install server software
become: true
ansible.builtin.apt: name={{ item }} state=present
with_items:
- openssh-server
- name: include router setup if tagged
when: router_server
ansible.builtin.include_tasks:
file: router.yaml