Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ansible/artifactory] Destination /etc/cron.allow does not exist #420

Closed
EmptyByte opened this issue Oct 28, 2024 · 1 comment
Closed

[ansible/artifactory] Destination /etc/cron.allow does not exist #420

EmptyByte opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@EmptyByte
Copy link

In most roles if the following variable is set to true:

# Allow artifactory user to create crontab rules
artifactory_allow_crontab: false

Then you may face:

FAILED! => {"changed": false, "msg": "Destination /etc/cron.allow does not exist !", "rc": 257}

Because the following task:

- name: Allow using crontab
  ansible.builtin.lineinfile:
    path: /etc/cron.allow
    line: "{{ artifactory_user }}"
    state: present
  when: artifactory_allow_crontab

Is missing:

create: true
@chukka
Copy link
Collaborator

chukka commented Nov 18, 2024

@EmptyByte Thanks for raising this issue , Would you mind raising this as a Pull Request, Happy to take this in upcoming releases :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants