Hi, I'm new to Ansible so apologies for the the basic question. I have a role called "*manage_prod_logs*" I created the directory structure automatically using the command --> "*ansible-galaxy init manage_prod_logs"*
Within the directory structure, I have a file ..........\tasks\mail.yml It looks as follows: ________________________________________________________________________________________________________________________________________ --- - name: *Copy_File* copy: src=/bt/brandtone/task-automation/scripts/log_file_archiver.bash dest=/bt/scripts/log_file_archiver.bash owner=ansible force=yes group=brandtone mode=4755 - name: *Run_Script* command: "/bin/bash /bt/scripts/log_file_archiver.bash" become: true args: chdir: /bt/scripts _________________________________________________________________________________________________________________________________________ The playbook is actually working properly at the moment for the remote host. My question is, will the task "*Copy_File*" above always execute before the task "*Run_Script*" by virtue of their positioning within the task list or do I need to do something else to ensure they always execute in sequence. Many thanks in advance, Rgds, Michael -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c3bc0388-29b8-4445-819a-904a21750e26%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
