Просмотр исходного кода

move default ansible uid to 1300

Blaine Story 3 лет назад
Родитель
Сommit
00946f4355
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 2
      roles/bootstrap/defaults/main.yml
  2. 1 0
      roles/bootstrap/tasks/main.yml

+ 1 - 2
roles/bootstrap/defaults/main.yml

@@ -2,5 +2,4 @@
 ansible_ssh_key_path: "~/.ssh/ansible_rsa.pub"
 ansible_username: "ansible"
 ansible_ssh_user: "root"
-bootstrap_hosts: "bootstrap"
-os_family: "redhat"
+ansible_creation_uid: "1300"

+ 1 - 0
roles/bootstrap/tasks/main.yml

@@ -44,6 +44,7 @@
     name: ansible
     state: present
     shell: /bin/bash
+    uid: "{{ ansible_uid }}"
     create_home: yes
   when:
     - ansible_os_family != 'LibreELEC'