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_port=7777
ansible_user=ubuntu
ansible_password=ubuntu
ansible_user=local
ansible_password=password
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
# 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:
```
$ ansible-playbook -K qemu/main.yml
$ ansible-playbook -K qemu/install.yml
```
To view the vm, you also need a vnc viewer.

View File

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

View File

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

View File

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