File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1414- name : " Prepare Debian GitLab installation"
1515 when : " ansible_facts.os_family == 'Debian'"
1616 block :
17- - name : " Install APT GPG key"
17+ - name : " Remove APT GPG key"
1818 ansible.builtin.apt_key :
1919 url : " {{ gitlab_gpg_key_url }}"
2020 id : " {{ gitlab_gpg_key_id }}"
21- state : " present "
21+ state : " absent "
2222 when : " not gitlab_is_initial_dryrun"
2323
2424 - name : " Add GitLab APT repository"
25- ansible.builtin.apt_repository :
26- repo : " deb {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
25+ ansible.builtin.deb822_repository :
26+ name : " gitlab_{{ gitlab_edition }}"
27+ types : " deb"
28+ uris : " {{ gitlab_repo_url }}"
29+ suites : " {{ ansible_facts.distribution_release }}"
30+ components : " main"
31+ signed_by : " gitlab_gpg_key_url"
2732 state : " present"
28- filename : " gitlab_{{ gitlab_edition }}"
2933 mode : " 0644"
3034
31- - name : " Add GitLab source APT repository"
35+ - name : " Remove GitLab source APT repository"
3236 ansible.builtin.apt_repository :
3337 repo : " deb-src {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
34- state : " present "
38+ state : " absent "
3539 filename : " gitlab_{{ gitlab_edition }}"
3640 mode : " 0644"
3741
You can’t perform that action at this time.
0 commit comments