Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yamllint errors #115

Merged
merged 1 commit into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.27.1
rev: v1.28.0
hooks:
- id: yamllint
args: ["-c=.yamllint", "."]
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v6.4.0
rev: v6.8.0
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ galaxy_info:

license: MIT

min_ansible_version: 2.11
min_ansible_version: "2.11"

platforms:
- name: Debian
Expand Down
4 changes: 3 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

pre_tasks:
- name: Update apt cache.
ansible.builtin.apt: update_cache=yes cache_valid_time=600
ansible.builtin.apt:
update_cache: true
cache_valid_time: 600
when: ansible_os_family == 'Debian'

- name: Ensures dependencies are installed
Expand Down
2 changes: 1 addition & 1 deletion tasks/keyring-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
set -o pipefail
cat {{ tmp_dir.path }}/keys.asc | gpg --dearmor > {{ tmp_dir.path }}/signal-desktop-keyring.gpg
cat {{ tmp_dir.path }}/signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null
creates=/usr/share/keyrings/signal-desktop-keyring.gpg
args:
creates: /usr/share/keyrings/signal-desktop-keyring.gpg
executable: /bin/bash
become: true
7 changes: 4 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
register: keyring_file

- name: Keyring setup
include_tasks: keyring-setup.yml
ansible.builtin.include_tasks: keyring-setup.yml
when: not keyring_file.stat.exists

- name: Add Signal repository to list of repositories
ansible.builtin.shell: |
set -o pipefail
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' |\
sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
creates=/etc/apt/sources.list.d/signal-xenial.list
args:
creates: /etc/apt/sources.list.d/signal-xenial.list
executable: /bin/bash

- name: Update apt cache
ansible.builtin.apt: update_cache=yes
ansible.builtin.apt:
update_cache: true
become: true

- name: Install Signal
Expand Down