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

Fix issue 91 #94

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions tasks/web_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@
- restart concourse-web
when: "ansible_system == 'Linux'"

- name: web | Create base resource type defaults configuration file
copy:
owner: "{{ concourseci_user }}"
group: "{{ concourseci_group }}"
dest: "{{ concourse_web_options_combined['CONCOURSE_BASE_RESOURCE_TYPE_DEFAULTS'] }}"
content: "{{ concourseci_web_resource_type_defaults | to_nice_yaml(indent=2) }}"
mode: '644'
when: "{{ concourseci_web_resource_type_defaults | dict2items | length > 0 }}"
notify:
- restart concourse-web

- name: web | Ensure Concourse web is running and Starts on boot (linux)
service:
name="concourse-web"
Expand All @@ -96,14 +107,3 @@
shell: launchctl load -w {{ concourseci_launchd_path }}/{{ concourseci_launchd_web }}.plist && launchctl start {{ concourseci_launchd_web }}
changed_when: False # since no way to detect if it started or not
when: "ansible_system == 'Darwin'"

- name: web | Create base resource type defaults configuration file
copy:
owner: "{{ concourseci_user }}"
group: "{{ concourseci_group }}"
dest: "{{ concourse_web_options_combined['CONCOURSE_BASE_RESOURCE_TYPE_DEFAULTS'] }}"
content: "{{ concourseci_web_resource_type_defaults | to_nice_yaml(indent=2) }}"
mode: '644'
when: "{{ concourseci_web_resource_type_defaults | dict2items | length > 0 }}"
notify:
- restart concourse-web