1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ntp.git synced 2024-08-16 12:59:49 +02:00

Update Linting

This commit is contained in:
L3D 2022-11-16 23:34:46 +01:00
parent 4bf1dbdffe
commit 8ba850f2c1
Signed by: l3d
GPG key ID: CD08445BFF4313D1
5 changed files with 22 additions and 23 deletions

View file

@ -5,19 +5,19 @@ galaxy_info:
description: install and configure the Network Time Protocol (NTP) Daemon description: install and configure the Network Time Protocol (NTP) Daemon
license: "Apache-2.0" license: "Apache-2.0"
min_ansible_version: 2.11 min_ansible_version: '2.12'
platforms: platforms:
- name: Archlinux - name: ArchLinux
versions: all versions: ['all']
- name: Clearlinux
version: all
- name: Debian - name: Debian
versions: all versions: ['all']
- name: Ubuntu
versions: ['all']
- name: EL - name: EL
versions: all versions: ['all']
- name: Fedora - name: Fedora
versions: all versions: ['all']
galaxy_tags: galaxy_tags:
- system - system

View file

@ -1,7 +1,5 @@
--- ---
# Tasks file for config ntp daemon - name: Seting up ntp config
- name: seting-up ntp config
become: true become: true
ansible.builtin.template: ansible.builtin.template:
src: templates/ntp.conf.j2 src: templates/ntp.conf.j2

View file

@ -1,5 +1,5 @@
--- ---
- name: run versionscheck if enabled - name: Optionally run versionscheck if enabled
ansible.builtin.include_tasks: versioncheck.yml ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck | bool when: submodules_versioncheck | bool

View file

@ -10,7 +10,7 @@
mode: 0755 mode: 0755
when: submodules_versioncheck | bool when: submodules_versioncheck | bool
- name: check playbook version - name: Check playbook version
become: true become: true
ansible.builtin.slurp: ansible.builtin.slurp:
src: "/etc/.ansible-version/{{ playbook_version_path }}" src: "/etc/.ansible-version/{{ playbook_version_path }}"
@ -35,10 +35,11 @@
when: when:
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck | bool - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck | bool
- name: write new version to remote disk - name: Write new version to remote disk
become: true become: true
ansible.builtin.copy: ansible.builtin.copy:
content: "{{ playbook_version_number }}" content: "{{ playbook_version_number }}"
dest: "/etc/.ansible-version/{{ playbook_version_path }}" dest: "/etc/.ansible-version/{{ playbook_version_path }}"
mode: '0644' mode: '0644'
when: submodules_versioncheck | bool when: submodules_versioncheck | bool
tags: skip_ansible_lint_template-instead-of-copy

View file

@ -1,5 +1,5 @@
--- ---
playbook_version_number: 2053 playbook_version_number: 2054
playbook_version_path: 'role-ntp_chaos-bodensee_github.com.version' playbook_version_path: 'role-ntp_chaos-bodensee_github.com.version'
ntp__vars: ntp__vars: