Format files with ansible-lint
This commit is contained in:
@ -1,30 +1,30 @@
|
||||
---
|
||||
- name: 'Download eget from url "{{ eget_download_url }}"'
|
||||
ansible.builtin.get_url:
|
||||
url: '{{ eget_download_url }}'
|
||||
dest: '{{ eget_download_dest }}'
|
||||
mode: '0600'
|
||||
url: "{{ eget_download_url }}"
|
||||
dest: "{{ eget_download_dest }}"
|
||||
mode: "0600"
|
||||
|
||||
- name: 'Unarchive eget'
|
||||
- name: "Unarchive eget"
|
||||
ansible.builtin.unarchive:
|
||||
src: '{{ eget_download_dest }}'
|
||||
dest: '/tmp'
|
||||
src: "{{ eget_download_dest }}"
|
||||
dest: "/tmp"
|
||||
list_files: true
|
||||
remote_src: true
|
||||
|
||||
- name: 'Install eget binary'
|
||||
- name: "Install eget binary"
|
||||
ansible.builtin.copy:
|
||||
src: '{{ (eget_unarchive_dest, "eget") | path_join }}'
|
||||
dest: '{{ eget_install_path }}'
|
||||
mode: '0755'
|
||||
dest: "{{ eget_install_path }}"
|
||||
mode: "0755"
|
||||
remote_src: true
|
||||
|
||||
- name: 'Remove temporary files'
|
||||
- name: "Remove temporary files"
|
||||
ansible.builtin.file:
|
||||
path: '{{ eget_download_dest }}'
|
||||
path: "{{ eget_download_dest }}"
|
||||
state: absent
|
||||
|
||||
- name: 'Remove temporary directories'
|
||||
- name: "Remove temporary directories"
|
||||
ansible.builtin.file:
|
||||
path: '{{ eget_unarchive_dest }}'
|
||||
path: "{{ eget_unarchive_dest }}"
|
||||
state: absent
|
||||
|
@ -1,24 +1,24 @@
|
||||
---
|
||||
# tasks file for eget
|
||||
|
||||
- name: 'Check if eget installed'
|
||||
- name: "Check if eget installed"
|
||||
ansible.builtin.command:
|
||||
cmd: '{{ eget_install_path }} --version'
|
||||
cmd: "{{ eget_install_path }} --version"
|
||||
register: eget_installed_output
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
|
||||
- name: 'Check eget installed version'
|
||||
- name: "Check eget installed version"
|
||||
ansible.builtin.set_fact:
|
||||
eget_need_install: '{{ not (eget_installed_output.rc == 0 and eget_version in eget_installed_output.stdout) }}'
|
||||
eget_need_install: "{{ not (eget_installed_output.rc == 0 and eget_version in eget_installed_output.stdout) }}"
|
||||
|
||||
- name: 'Assert that installation flag is defined'
|
||||
- name: "Assert that installation flag is defined"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- eget_need_install is defined
|
||||
- eget_need_install is boolean
|
||||
|
||||
- name: 'Download eget and install eget'
|
||||
- name: "Download eget and install eget"
|
||||
ansible.builtin.include_tasks:
|
||||
file: 'install.yml'
|
||||
file: "install.yml"
|
||||
when: eget_need_install
|
||||
|
Reference in New Issue
Block a user