Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
4-digit octal mode works incorrectly unless quoted #9196
Can You Help Us Out?
Thanks for filing a ticket! I am the friendly GitHub Ansibot.
It looks like you might not have filled out the issue description based on our standard issue template. You might not have known about that, and that's ok too, we'll tell you how to do it.
We have a standard template because Ansible is a really busy project and it helps to have some standard information in each ticket, and GitHub doesn't yet provide a standard facility to do this like some other bug trackers. We hope you understand as this is really valuable to us!.
Solving this is simple: please copy the contents of this template and paste it into the description of your ticket. That's it!
If You Had A Question To Ask Instead
If you happened to have a "how do I do this in Ansible" type of question, that's probably more of a user-list question than a bug report, and you should probably ask this question on the project mailing list instead.
However, if you think you have a bug, the report is the way to go! We definitely want all the bugs filed :) Just trying to help!
About Priority Tags
Since you're here, we'll also share some useful information at this time.
In general tickets will be assigned a priority between P1 (highest) and P5, and then worked in priority order. We may also have some follow up questions along the way, so keeping up with follow up comments via GitHub notifications is a good idea.
Due to large interest in Ansible, humans may not comment on your ticket immediately.
If you have concerns or questions, you're welcome to stop by the ansible-project or ansible-development mailing lists, as appropriate. Here are the links:
Thanks again for the interest in Ansible!
Thanks very much for your submission to Ansible. It sincerely means a lot to us.
We believe the ticket you have filed is being somewhat misunderstood, as one thing works a little differently than stated.
In particular, we believe you have said:
However, however what is happening is that:
We would suggest:
In the future, this might be a topic more well suited for the user list, which you can also post here if you'd like some more help with the above.
Thank you once again for this and your interest in Ansible!
@mpdehaan What I meant is octal in the sense of chmod — not as in a Ruby octal number.
What possible (intended) interpretation of "mode: 2750" do you think there is that makes the result be
AFAICT, the only interpretation is the same as
I believe the confusion is coming from the way that python and yaml (pyyaml) work with each other in regards to octal values.
When you specify
Your options would be something such as:
As a string:
Using proper python 2.x octal notation:
Using a decimal representation of octal mode 02750:
referenced this issue
Apr 23, 2015
referenced this issue
Dec 11, 2016
I understand the problem, but I also think it could be better documented
In my case I read on this page: http://docs.ansible.com/ansible/file_module.html
Of course, as many, I was looking for a syntax example, my eyes caught
I'd have been helped here with examples quoted.