kdc: ansible-lint fixes
This commit is contained in:
parent
0745d3a635
commit
b93ad7e514
2 changed files with 12 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: rebuild kdc-container
|
||||
- name: Rebuild kdc-container
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- podman
|
||||
|
@ -9,9 +9,9 @@
|
|||
- /usr/local/src/docker-kdc
|
||||
become: true
|
||||
become_user: kdc
|
||||
notify: restart kdc-container
|
||||
notify: Restart kdc-container
|
||||
|
||||
- name: restart kdc-container
|
||||
- name: Restart kdc-container
|
||||
ansible.builtin.service:
|
||||
name: kdc-container
|
||||
state: restarted
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
---
|
||||
- name: create group
|
||||
- name: Create group
|
||||
ansible.builtin.group:
|
||||
name: kdc
|
||||
|
||||
- name: create user
|
||||
- name: Create user
|
||||
ansible.builtin.user:
|
||||
name: kdc
|
||||
comment: Podman KDC
|
||||
group: kdc
|
||||
shell: /sbin/nologin
|
||||
|
||||
- name: get container source
|
||||
- name: Get container source
|
||||
ansible.builtin.git:
|
||||
dest: /usr/local/src/docker-kdc
|
||||
repo: https://github.com/foo-sh/docker-kdc.git
|
||||
update: false
|
||||
notify: rebuild kdc-container
|
||||
notify: Rebuild kdc-container
|
||||
|
||||
- name: create service config
|
||||
- name: Create service config
|
||||
ansible.builtin.template:
|
||||
dest: /etc/sysconfig/kdc-container
|
||||
src: kdc-container.sysconfig.j2
|
||||
|
@ -25,7 +25,7 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: create service file
|
||||
- name: Create service file
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/systemd/system/kdc-container.service
|
||||
src: kdc-container.service
|
||||
|
@ -33,13 +33,13 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: enable service
|
||||
- name: Enable service
|
||||
ansible.builtin.service:
|
||||
name: kdc-container
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: copy nginx config
|
||||
- name: Copy nginx config
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/nginx/conf.d/{{ inventory_hostname }}/kdc-container.conf
|
||||
content: |
|
||||
|
@ -49,4 +49,4 @@
|
|||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
notify: restart nginx
|
||||
notify: Restart nginx
|
||||
|
|
Loading…
Add table
Reference in a new issue