Skip to content

Course Update: Section 2 - Section 1 & 2 Quiz -- Incorrect mode command argument in the - 'Ansible Modules - check our knowledge' #20

Description

@mikeelliottuk

Hi there, I was working through the 'Lets check our Ansible knowledge' test for the Ansible Modules section (Approx 14m30s in the video). I constructed the command using the Ansible documentation and noticed a small error in the instructional video.

The command as shown was:

ansible all -m file -a 'path=/tmp/test_modules.txt state=touch mode=600'

but I noticed that the documentation states that the mode value in this case will be interpreted as decimal and not octal. I think the command should therefor be:

ansible all -m file -a 'path=/tmp/test_modules.txt state=touch mode='600''
or
ansible all -m file -a 'path=/tmp/test_modules.txt state=touch mode=0600'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions