{"id":910,"sha1":"da26312e70ee47b71593a2d1ca776b736ce337ce","playbook":{"id":909,"items":{"plays":1,"tasks":2,"results":2,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"versatile-chipmunk.man-1.vm.plesk-server.com","extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["GH_solus-io-cloud-images_25.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":13,"name":"plesk"},{"id":80,"name":"subset:versatile-chipmunk.man-1.vm.plesk-server.com"},{"id":86,"name":"bash"}],"started":"2024-07-25T11:42:41.172182+01:00","ended":"2024-07-25T11:42:43.075331+01:00","duration":"00:00:01.903149","name":"GH_solus-io-cloud-images_25.yaml","ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"completed","path":"/home/ssh-gateway/ansible/GH_solus-io-cloud-images_25.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Playbook to add to PATH on Plesk servers\n  hosts: all\n  gather_facts: false\n  vars:\n    ara_playbook_name: GH_solus-io-cloud-images_25.yaml\n    ara_playbook_labels:\n      - plesk\n      - bash\n  tasks:\n    - name: Run Plesk command and capture output\n      ansible.builtin.shell: |\n        set -o pipefail\n        /sbin/plesk -v | grep \"Product version\" | cut -d \":\" -f2\n      args:\n        executable: /bin/bash\n      register: plsk_out\n      changed_when: false\n\n    - name: Ensure PATH is added to .bashrc if Plesk server\n      when: \"'Plesk' in plsk_out.stdout\"\n      ansible.builtin.lineinfile:\n        path: /root/.bashrc\n        line: 'export PATH=\"$PATH\":/opt/ls_tools'\n        create: true\n        state: present\n        backup: true\n        mode: '0644'\n","created":"2024-07-25T11:42:41.193496+01:00","updated":"2024-07-25T11:42:41.193517+01:00","path":"/home/ssh-gateway/ansible/GH_solus-io-cloud-images_25.yaml"}