changed default user info

This commit is contained in:
Daniel Liu 2021-10-03 18:30:51 -04:00
parent 0f4ff082db
commit ec16a4890a
6 changed files with 13 additions and 12 deletions

6
hosts
View File

@ -12,10 +12,10 @@ host=mirror
ansible_connection=ssh ansible_connection=ssh
ansible_port=7777 ansible_port=7777
ansible_user=ubuntu ansible_user=local
ansible_password=ubuntu ansible_password=password
ansible_become_user=root ansible_become_user=root
ansible_become_password=ubuntu ansible_become_password=password
# 192.168.123.2 host=mirror ansible_connection=ssh ansible_port=22 ansible_user=ubuntu ansible_password=ubuntu ansible_become_user=root ansible_become_password=ubuntu # 192.168.123.2 host=mirror ansible_connection=ssh ansible_port=22 ansible_user=ubuntu ansible_password=ubuntu ansible_become_user=root ansible_become_password=ubuntu
# ansible_ssh_private_key_file # ansible_ssh_private_key_file

View File

@ -12,7 +12,7 @@ location of your `OVMF_CODE.fd` file.
To begin the setup process, in this repo's root, run: To begin the setup process, in this repo's root, run:
``` ```
$ ansible-playbook -K qemu/main.yml $ ansible-playbook -K qemu/install.yml
``` ```
To view the vm, you also need a vnc viewer. To view the vm, you also need a vnc viewer.

View File

@ -3,9 +3,8 @@ autoinstall:
version: 1 version: 1
identity: identity:
hostname: mirror hostname: mirror
username: ubuntu username: local
# password is just ubuntu password: "$6$AOugLxHR5diu/YXY$N1KDTxsetgDQFjpasLzE/228tL1Yid/0rnl9Wv/PQ3MoONcdRlV7uY8JAFUlQ3OnqFzoYjFuKNtC2BWbJK2ca0"
password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
locale: en_US locale: en_US
ssh: ssh:
allow-pw: true allow-pw: true

View File

@ -2,9 +2,11 @@
- hosts: vm - hosts: vm
tasks: tasks:
- name: Basic system configuration - name: Basic system configuration
become: yes
import_role: import_role:
name: ../roles/system name: ../roles/system
# - name: Setting up ssh - name: Setting up ssh
# import_role: become: yes
# name: ../roles/ssh import_role:
name: ../roles/ssh

View File

@ -21,7 +21,7 @@
password: "{{ 'password' | password_hash('sha512') }}" password: "{{ 'password' | password_hash('sha512') }}"
update_password: on_create update_password: on_create
loop: loop:
- { user: local, uid: 1000, shell: /bin/bash, home: yes } - { user: local, uid: 1000, shell: /bin/bash, home: yes }
- { user: mirror, uid: 1001, shell: /bin/bash, home: yes } - { user: mirror, uid: 1001, shell: /bin/bash, home: yes }
- { user: push, uid: 1002, shell: /bin/sh, home: no } - { user: push, uid: 1002, shell: /bin/sh, home: no }
- { user: syscom, uid: 10001, shell: /bin/bash, home: no } - { user: syscom, uid: 10001, shell: /bin/bash, home: no }
@ -109,4 +109,4 @@
cscmirror cscmirror
raidz2 raidz2
{{ disk_arg }} {{ disk_arg }}
when: zpool_exists.rc != 0 when: zpool_exists.rc != 0