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

need to set user on Jenkins_Home directory & make user from /etc/sysconfig/jenkins to run as root user #32

Open
thatsk opened this issue Aug 13, 2018 · 1 comment

Comments

@thatsk
Copy link

thatsk commented Aug 13, 2018

No description provided.

@thatsk
Copy link
Author

thatsk commented Aug 13, 2018

ansible-jenkins/tasks/configure-jenkins.yml

  • name: setting up user for jenkins home directory
    lineinfile:
    path: /etc/sysconfig/jenkins
    regexp: '^JENKINS_USER='
    line: 'JENKINS_USER="{{ jenkins_config_owner }}"'
  • name: changing ownership of jenkins home directory
    file:
    path: "{{ jenkins_home }}"
    owner: "{{ jenkins_config_owner }}"
    group: "{{ jenkins_config_group }}"
    mode: 0755
    state: directory
    recurse: yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant