From ab2c6500828a1a56eb44a1398a22f5ccc9340dc4 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sun, 3 Sep 2023 23:17:04 +0100 Subject: [PATCH] Added Ansible modelines (#247) For improved VS Code editing support. --- defaults/main.yml | 1 + molecule/code-only/converge.yml | 1 + molecule/default/converge.yml | 1 + molecule/ubuntu-min-trusted-yes/converge.yml | 1 + molecule/ubuntu-min/converge.yml | 1 + tasks/install-apt.yml | 1 + tasks/install-dnf.yml | 1 + tasks/install-extensions.yml | 1 + tasks/install-homebrew.yml | 1 + tasks/install-yum.yml | 1 + tasks/install-zypper.yml | 1 + tasks/install.yml | 1 + tasks/main.yml | 1 + tasks/write-settings.yml | 1 + vars/main.yml | 1 + 15 files changed, 15 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 4f80a55..62058a3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- # Visual Studio Code version number (defaults to the latest version) visual_studio_code_version: '' diff --git a/molecule/code-only/converge.yml b/molecule/code-only/converge.yml index 93ae44a..ac503c8 100644 --- a/molecule/code-only/converge.yml +++ b/molecule/code-only/converge.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Converge hosts: all diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 4ae04c0..0a50bdc 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Converge hosts: all diff --git a/molecule/ubuntu-min-trusted-yes/converge.yml b/molecule/ubuntu-min-trusted-yes/converge.yml index c7351cb..5f73d47 100644 --- a/molecule/ubuntu-min-trusted-yes/converge.yml +++ b/molecule/ubuntu-min-trusted-yes/converge.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Converge hosts: all diff --git a/molecule/ubuntu-min/converge.yml b/molecule/ubuntu-min/converge.yml index e403946..021fae5 100644 --- a/molecule/ubuntu-min/converge.yml +++ b/molecule/ubuntu-min/converge.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Converge hosts: all diff --git a/tasks/install-apt.yml b/tasks/install-apt.yml index 3569c41..1af5efb 100644 --- a/tasks/install-apt.yml +++ b/tasks/install-apt.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Install dependencies (apt) become: true diff --git a/tasks/install-dnf.yml b/tasks/install-dnf.yml index e1ff3a4..7cba52f 100644 --- a/tasks/install-dnf.yml +++ b/tasks/install-dnf.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Install dependencies (dnf) become: true diff --git a/tasks/install-extensions.yml b/tasks/install-extensions.yml index e579a0c..6ecba48 100644 --- a/tasks/install-extensions.yml +++ b/tasks/install-extensions.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Install extensions become: true diff --git a/tasks/install-homebrew.yml b/tasks/install-homebrew.yml index 0a16bff..efda178 100644 --- a/tasks/install-homebrew.yml +++ b/tasks/install-homebrew.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Install VS Code (brew-cask) community.general.homebrew_cask: diff --git a/tasks/install-yum.yml b/tasks/install-yum.yml index 4157241..7c646c4 100644 --- a/tasks/install-yum.yml +++ b/tasks/install-yum.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Install dependencies (yum) become: true diff --git a/tasks/install-zypper.yml b/tasks/install-zypper.yml index 77f3e04..cd3b354 100644 --- a/tasks/install-zypper.yml +++ b/tasks/install-zypper.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Install dependencies (zypper) become: true diff --git a/tasks/install.yml b/tasks/install.yml index 38ab5fd..387630a 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Assert supported distribution ansible.builtin.assert: diff --git a/tasks/main.yml b/tasks/main.yml index 4b37341..a75aa91 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - import_tasks: install.yml diff --git a/tasks/write-settings.yml b/tasks/write-settings.yml index f32ce20..d908ba4 100644 --- a/tasks/write-settings.yml +++ b/tasks/write-settings.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- - name: Create config directories for users become: true diff --git a/vars/main.yml b/vars/main.yml index cd23de3..033a74d 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,4 @@ +# code: language=ansible --- # The name of the directory where the config is stored for this build visual_studio_code_config_dirname: "{{ (visual_studio_code_build == 'insiders') | ternary('Code - Insiders', 'Code') }}"