jfrog / JFrog-Cloud-Installers

Template to deploy Artifactory Enterprise cluster.
Apache License 2.0
78 stars 140 forks source link

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

Closed EmptyByte closed 5 hours ago

EmptyByte commented 4 weeks ago

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 commented 1 week ago

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