Categories
Syntax error in Ansible Playbook. What's wrong?
Good evening. Continuing to pick Ansible. I'm trying to write a simple playbook that just pings my servers. But it doesn't start. And this code throws an error. What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
become: yes You are missing a space before yes
Most likely due to indentation.
--- - hosts: localhost connection: local gather_facts: yes vars_files: - 'vars/main.yml' tasks: - name: set timezone to UTC timezone: name: UTC
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question