mg
ec33333916
rolle einzeln submodule entfernt Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#139 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
31 lines
726 B
YAML
31 lines
726 B
YAML
---
|
|
- name: create download directory
|
|
file:
|
|
state: directory
|
|
mode: 'u=rwx,go=rx'
|
|
dest: '{{ ctop_download_dir }}'
|
|
|
|
- name: download ctop
|
|
get_url:
|
|
url: '{{ ctop_mirror }}/{{ ctop_redis_filename }}'
|
|
dest: '{{ ctop_download_dir }}/{{ ctop_redis_filename }}'
|
|
checksum: 'sha256:{{ ctop_redis_sha256sum }}'
|
|
mode: 'u=rw,go=r'
|
|
|
|
- name: create the ctop installation dir
|
|
become: yes
|
|
file:
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 'u=rwx,go=rx'
|
|
dest: '{{ ctop_install_dir }}'
|
|
|
|
- name: install ctop
|
|
become: yes
|
|
copy:
|
|
src: '{{ ctop_download_dir }}/{{ ctop_redis_filename }}'
|
|
remote_src: yes
|
|
dest: '{{ ctop_install_path }}'
|
|
force: yes
|
|
mode: 'u=rwx,go=rx'
|