diff --git a/tasks/main.yml b/tasks/main.yml index 70d196c..109f75d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -34,8 +34,8 @@ - name: create runner config ansible.builtin.template: - src: conf.yml.j2 - dest: "{{ RUNNER_DIR }}/conf.yml" + src: config.yml.j2 + dest: "{{ RUNNER_DIR }}/config.yml" owner: "{{ RUNNER_USER }}" group: "{{ RUNNER_GROUP | default(RUNNER_USER) }}" mode: '0660' @@ -53,6 +53,7 @@ meta: flush_handlers - name: register runner + notify: restart runner ansible.builtin.command: cmd: "{{ RUNNER_DIR }}/{{ RUNNER_NAME }} register --no-interactive --instance {{ RUNNER_INSTANCE }} --token {{ RUNNER_TOKEN }}" chdir: "{{ RUNNER_DIR }}" diff --git a/templates/conf.yml.j2 b/templates/config.yml.j2 similarity index 100% rename from templates/conf.yml.j2 rename to templates/config.yml.j2