V(
Size: a a a
V(
NZ
- name: App
hosts: server01
roles:
- { role: role_name }
include_tasks: install.yml
tags: app_install
include_tasks: update_only.yml
tags: app_update
ansible-playbook ./site.yml -t app_update
NZ
NZ
cc
- name: App
hosts: server01
roles:
- { role: role_name }
include_tasks: install.yml
tags: app_install
include_tasks: update_only.yml
tags: app_update
ansible-playbook ./site.yml -t app_update
NZ
include_task: update_only.yml
. Сейчас нужно как-то переделывать логику.cc
include_task: update_only.yml
. Сейчас нужно как-то переделывать логику.NZ
SUDO password:
PLAY [Update ferm on environment] **
TASK [Gathering Facts] **
ok: [server01]
PLAY RECAP **
server01 : ok=1 changed=0 unreachable=0 failed=0
ansible-playbook ./site.yml
- name: App
hosts: server01
roles:
- { role: role_name, tags: ["app_update"] }
NZ
{ role: role_name, vars: { action: "app_update" }
include_tasks: install.yml
when: action == 'app_install'
include_tasks: update_only.yml
when: action == 'app_update'
cc
SUDO password:
PLAY [Update ferm on environment] **
TASK [Gathering Facts] **
ok: [server01]
PLAY RECAP **
server01 : ok=1 changed=0 unreachable=0 failed=0
ansible-playbook ./site.yml
- name: App
hosts: server01
roles:
- { role: role_name, tags: ["app_update"] }
Г
NZ
d
cc
d
ЯП
d
nohup /root/ServerAgent-2.2.3/startAgent.sh > /root/ServerAgent-2.2.3/agent.log 2>&1 &
ЯП
d