created major large-scale changes
This commit is contained in:
@@ -88,13 +88,6 @@
|
||||
# @TODO uncomment below before continuing with testing previous task
|
||||
# - name: Premature end of play
|
||||
# ansible.builtin.meta: end_play
|
||||
- name: Updating package cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
- name: Updating package cache
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
autoremove: true
|
||||
- name: Registering a package source
|
||||
when: item.sources != None
|
||||
ansible.builtin.deb822_repository:
|
||||
@@ -109,6 +102,10 @@
|
||||
- name: Updating package cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
- name: Upgrading
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
autoremove: true
|
||||
- name: Installing a local package in managed node
|
||||
when: item.uri != None
|
||||
ansible.builtin.apt:
|
||||
@@ -122,6 +119,8 @@
|
||||
name: "{{ item.name }}"
|
||||
state: latest
|
||||
notify: "{{ item.handler | default('default') }}" # @TODO create corresponding roles/init-vps handlers
|
||||
async: 600
|
||||
poll: 5
|
||||
loop: "{{ (pkgs.mngr.userspace | default([])) | rejectattr('uri', 'search', '\\.deb$') }}"
|
||||
tags:
|
||||
- get_mngr_pkgs
|
||||
@@ -138,7 +137,8 @@
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
force: true
|
||||
mode: "744"
|
||||
mode: "755"
|
||||
timeout: 300
|
||||
notify: "{{ (pkgs.script.userspace | default([]))[idx].handler | default('default') }}"
|
||||
loop: "{{ (pkgs.script.userspace | default([])) }}"
|
||||
loop_control:
|
||||
@@ -206,7 +206,6 @@
|
||||
dest: "{{ ansible_user_home.stdout }}/repos/.foreign/{{ item.name }}"
|
||||
version: "{{ item.branch }}"
|
||||
clone: true
|
||||
single_branch: true
|
||||
notify: "{{ item.handler | default('default') }}"
|
||||
loop: "{{ (pkgs.git_repos.userspace | default([])) }}"
|
||||
register: installation_repos
|
||||
@@ -225,8 +224,9 @@
|
||||
dest: "/usr/bin/{{ item.name }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "744"
|
||||
mode: "755"
|
||||
force: true
|
||||
backup: true
|
||||
notify: "{{ item.handler }}"
|
||||
timeout: 300
|
||||
loop: "{{ (pkgs.binaries.userspace | default([])) }}"
|
||||
Reference in New Issue
Block a user