1
0
Fork 0
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:
L3D 2022-04-06 00:15:06 +02:00
parent fe655fbf3c
commit 21ae74cb6f
Signed by: l3d
GPG key ID: CD08445BFF4313D1
6 changed files with 16 additions and 23 deletions

View file

@ -7,8 +7,6 @@ on:
branches: '*' branches: '*'
pull_request: pull_request:
branches: '*' branches: '*'
schedule:
- cron: '42 6 * */1 *'
jobs: jobs:
build: build:
@ -19,10 +17,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Lint Ansible Playbook - name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master uses: ansible/ansible-lint-action@v6
with: with:
targets: "." targets: "."
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
args: ""
# [optional]

View file

@ -15,6 +15,6 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: galaxy - name: galaxy
uses: robertdebock/galaxy-action@1.1.0 uses: robertdebock/galaxy-action@1.2.0
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} galaxy_api_key: ${{ secrets.galaxy_api_key }}

View file

@ -7,8 +7,6 @@ on:
branches: '*' branches: '*'
pull_request: pull_request:
branches: '*' branches: '*'
schedule:
- cron: '23 6 * */1 *'
jobs: jobs:
yamllint: yamllint:

View file

@ -1,19 +1,19 @@
--- ---
# should we install weechat? # should we install weechat?
weechat__install: true weechat__install: true
# autostart weechat via systemd in a tmux session? # autostart weechat via systemd in a tmux session?
weechat__autostart: false weechat__autostart: false
# should we install official weechat plugins # should we install official weechat plugins
weechat__install_plugins: false weechat__install_plugins: false
# custom weechat config (requires some manual interaction for long-term usage) # custom weechat config (requires some manual interaction for long-term usage)
weechat__use_custom_config: false weechat__use_custom_config: false
# user to install and use weechat # user to install and use weechat
weechat__user: "{{ ansible_user_id }}" weechat__user: "{{ ansible_user_id }}"
# where is our home direcotory for weechat # where is our home direcotory for weechat
weechat__home_directory: "{{ ansible_env.HOME | default('/home/{{ weechat__user }}') }}" weechat__home_directory: "{{ ansible_env.HOME | default('/home/{{ weechat__user }}') }}"
# plugins we want # plugins we want
weechat__plugins: [] weechat__plugins: []
# weechat gpg key for debian/ubuntu repo # weechat gpg key for debian/ubuntu repo
weechat__gpg_id: '11E9DE8848F2B65222AA75B8D1820DB22A11534E' weechat__gpg_id: '11E9DE8848F2B65222AA75B8D1820DB22A11534E'
# path to your custom weechat config (with plugins) git repo # path to your custom weechat config (with plugins) git repo

View file

@ -45,7 +45,7 @@
ssh_opts: "-i {{ weechat__home_directory }}/.ssh/id_ed25519" ssh_opts: "-i {{ weechat__home_directory }}/.ssh/id_ed25519"
rescue: rescue:
- name: wait until you fixed remote git issues - name: wait until you fixed remote git issues
pause: ansible.builtin.pause:
prompt: "Please fix the issue with your git repository and try again" prompt: "Please fix the issue with your git repository and try again"
- name: try to download/update git repo again - name: try to download/update git repo again

View file

@ -1,7 +1,7 @@
--- ---
- name: create weechat directory - name: create weechat directory
become: true become: true
file: ansible.builtin.file:
path: "{{ weechat__home_directory }}/.weechat" path: "{{ weechat__home_directory }}/.weechat"
state: directory state: directory
owner: "{{ weechat__user }}" owner: "{{ weechat__user }}"
@ -9,7 +9,7 @@
- name: create weechat plugins directory - name: create weechat plugins directory
become: true become: true
file: ansible.builtin.file:
path: "{{ weechat__home_directory }}/.weechat/{{ item.value }}/autoload" path: "{{ weechat__home_directory }}/.weechat/{{ item.value }}/autoload"
state: directory state: directory
owner: "{{ weechat__user }}" owner: "{{ weechat__user }}"
@ -17,13 +17,14 @@
with_dict: "{{ weechat_plugin_languages }}" with_dict: "{{ weechat_plugin_languages }}"
- name: download weechat plugins - name: download weechat plugins
get_url: ansible.builtin.get_url:
url: 'https://weechat.org/files/scripts/{{ item }}' url: 'https://weechat.org/files/scripts/{{ item }}'
dest: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}" dest: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}"
mode: '0644'
with_items: '{{ weechat__plugins }}' with_items: '{{ weechat__plugins }}'
- name: symlinking plugins to autoload - name: symlinking plugins to autoload
file: ansible.builtin.file:
src: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}" 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 }}" dest: "{{ weechat__home_directory }}/.weechat/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/autoload/{{ item }}"
state: link state: link