mirror of
https://github.com/roles-ansible/ansible_role_weechat.git
synced 2024-08-16 13:09:48 +02:00
update linting and use FQCN
This commit is contained in:
parent
fe655fbf3c
commit
21ae74cb6f
6 changed files with 16 additions and 23 deletions
8
.github/workflows/ansible-linting-check.yml
vendored
8
.github/workflows/ansible-linting-check.yml
vendored
|
@ -7,8 +7,6 @@ on:
|
|||
branches: '*'
|
||||
pull_request:
|
||||
branches: '*'
|
||||
schedule:
|
||||
- cron: '42 6 * */1 *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -19,10 +17,6 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Lint Ansible Playbook
|
||||
uses: ansible/ansible-lint-action@master
|
||||
uses: ansible/ansible-lint-action@v6
|
||||
with:
|
||||
targets: "."
|
||||
# [required]
|
||||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
||||
args: ""
|
||||
# [optional]
|
||||
|
|
2
.github/workflows/galaxy.yml
vendored
2
.github/workflows/galaxy.yml
vendored
|
@ -15,6 +15,6 @@ jobs:
|
|||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: galaxy
|
||||
uses: robertdebock/galaxy-action@1.1.0
|
||||
uses: robertdebock/galaxy-action@1.2.0
|
||||
with:
|
||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||
|
|
2
.github/workflows/yamllint.yaml
vendored
2
.github/workflows/yamllint.yaml
vendored
|
@ -7,8 +7,6 @@ on:
|
|||
branches: '*'
|
||||
pull_request:
|
||||
branches: '*'
|
||||
schedule:
|
||||
- cron: '23 6 * */1 *'
|
||||
|
||||
jobs:
|
||||
yamllint:
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
ssh_opts: "-i {{ weechat__home_directory }}/.ssh/id_ed25519"
|
||||
rescue:
|
||||
- name: wait until you fixed remote git issues
|
||||
pause:
|
||||
ansible.builtin.pause:
|
||||
prompt: "Please fix the issue with your git repository and try again"
|
||||
|
||||
- name: try to download/update git repo again
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: create weechat directory
|
||||
become: true
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ weechat__home_directory }}/.weechat"
|
||||
state: directory
|
||||
owner: "{{ weechat__user }}"
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
- name: create weechat plugins directory
|
||||
become: true
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ weechat__home_directory }}/.weechat/{{ item.value }}/autoload"
|
||||
state: directory
|
||||
owner: "{{ weechat__user }}"
|
||||
|
@ -17,13 +17,14 @@
|
|||
with_dict: "{{ weechat_plugin_languages }}"
|
||||
|
||||
- name: download weechat plugins
|
||||
get_url:
|
||||
ansible.builtin.get_url:
|
||||
url: 'https://weechat.org/files/scripts/{{ item }}'
|
||||
dest: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}"
|
||||
mode: '0644'
|
||||
with_items: '{{ weechat__plugins }}'
|
||||
|
||||
- name: symlinking plugins to autoload
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
src: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}"
|
||||
dest: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/autoload/{{ item }}"
|
||||
state: link
|
||||
|
|
Loading…
Reference in a new issue