- name: Create old jenkins folders become: true file: path: /usr/local/jenkins/slave_scripts state: directory - name: Copy files to the slave_script dir on the node copy: dest: '/usr/local/jenkins/slave_scripts/' src: '{{ item }}' mode: '0755' with_items: - install-distro-packages.sh - jenkinsci-upload.sh - php-laravel-build.sh - version-properties.sh - zuul-sudo-grep.sh become: true