style: add YAML document start markers to Ansible playbooks and tasks
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
---
|
||||
- name: Gather OS facts
|
||||
ansible.builtin.setup:
|
||||
filter: ansible_distribution
|
||||
@@ -18,12 +19,12 @@
|
||||
gpgcheck=1
|
||||
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
|
||||
dest: /etc/yum.repos.d/vscode.repo
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
when: os_facts.ansible_facts.ansible_distribution == 'Fedora'
|
||||
|
||||
- name: Add VSCode repository (Ubuntu/Debian)
|
||||
ansible.builtin.apt_repository:
|
||||
repo: 'deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main'
|
||||
repo: "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
|
||||
state: present
|
||||
when: os_facts.ansible_facts.ansible_distribution in ['Ubuntu', 'Debian']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user