command bash -c ssh root inventory_hostname -p 22 rm -R home agent cac

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'rm -R /home/agent/.cache'"
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'rm -R /home/agent/.config/chromium'"
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'rm -R /home/agent/.config/google-chrome'"
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'rm -R /home/agent/.mozilla'"
command: bash -c "scp -r /root/_data/home/agent/.config/chromium root@{{inventory_hostname}}:/home/agent/.config/"
command: bash -c "scp -r /root/_data/home/agent/.config/google-chrome root@{{inventory_hostname}}:/home/agent/.config/"
command: bash -c "scp -r /root/_data/home/agent/.mozilla root@{{inventory_hostname}}:/home/agent/"
command: bash -c "scp -r /root/_data/home/agent/Рабочий\ стол/twinkle.desktop root@{{inventory_hostname}}:'/home/agent/Рабочий\ стол/'"
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'chmod +x '/home/agent/Рабочий\ стол/twinkle.desktop''"
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'chown -R agent:agent /home/agent/Рабочий\ стол/'"
command: bash -c "ssh root@{{inventory_hostname}} -p 22 'chown -R agent:agent /home/agent/.config/'"