redundant when apt removed

This commit is contained in:
Denis Knauf 2020-09-18 22:07:08 +02:00
parent 1d45984470
commit 60d1b51f41

View file

@ -25,11 +25,9 @@
- gnutls-bin - gnutls-bin
- python-openssl - python-openssl
- name: create git-group - name: create git-group
when: '"apt" == ansible_pkg_mgr|lower'
group: group:
name: git name: git
- name: create git-user - name: create git-user
when: '"apt" == ansible_pkg_mgr|lower'
user: user:
name: git name: git
comment: git & gitea comment: git & gitea
@ -40,7 +38,6 @@
move_home: no move_home: no
skeleton: no skeleton: no
- name: create gitea-dirs - name: create gitea-dirs
when: '"apt" == ansible_pkg_mgr|lower'
file: file:
dest: '{{item}}' dest: '{{item}}'
state: directory state: directory
@ -54,7 +51,6 @@
- /srv/gitea/custom - /srv/gitea/custom
- /etc/gitea - /etc/gitea
- name: create links - name: create links
when: '"apt" == ansible_pkg_mgr|lower'
file: file:
dest: '{{item.key}}' dest: '{{item.key}}'
src: '{{item.value}}' src: '{{item.value}}'
@ -65,13 +61,11 @@
/srv/gitea/custom/conf: /etc/gitea /srv/gitea/custom/conf: /etc/gitea
- name: "download gitea-{{ gitea_version }}-{{ ansible_architecture }}" - name: "download gitea-{{ gitea_version }}-{{ ansible_architecture }}"
when: '"apt" == ansible_pkg_mgr|lower'
get_url: get_url:
url: "{{ gitea_download_uri }}" url: "{{ gitea_download_uri }}"
dest: "/srv/gitea/gitea-{{ gitea_version }}-{{ ansible_architecture }}" dest: "/srv/gitea/gitea-{{ gitea_version }}-{{ ansible_architecture }}"
mode: 0600 mode: 0600
- name: "link gitea to gitea-{{ gitea_version }}-{{ ansible_architecture }}" - name: "link gitea to gitea-{{ gitea_version }}-{{ ansible_architecture }}"
when: '"apt" == ansible_pkg_mgr|lower'
copy: copy:
src: "/srv/gitea/gitea-{{ gitea_version }}-{{ ansible_architecture }}" src: "/srv/gitea/gitea-{{ gitea_version }}-{{ ansible_architecture }}"
dest: /srv/gitea/gitea dest: /srv/gitea/gitea