sysrc jail_enable=YES
sysrc jail_ansible0_mount_enable=YES
service jail restart ansible0
jexec 1 tcsh
vi /etc/resolv.conf
添加以下 DNS 配置:
nameserver 172.16.28.1
执行以下内容:
ping -c 3 bsd.pw
adduser
以下是我敲入的内容:
root@ansible0:/ # adduser
Username: ansible
Full name: Ansible user
Uid (Leave empty for default):
Login group [ansible]:
Login group is ansible. Invite ansible into other groups? []: wheel
Login class [default]:
Shell (sh csh tcsh nologin) [sh]: tcsh
Home directory [/home/ansible]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username : ansible
Password : *****
Full Name : Ansible user
Uid : 1001
Class :
Groups : ansible wheel
Home : /home/ansible
Home Mode :
Shell : /bin/tcsh
Locked : no
OK? (yes/no): yes
pkg install -y sudo python37
visudo
/wheel (press Enter)
j0xxZZ (on first search of wheel, j goes down a line, 0 to the start of a line, xx to delete comment, ZZ to save and quit)
su ansible
cd
sudo -H python3.7 -m ensurepip
sudo -H pip3.7 install pipenv
mkdir ansible
cd ansible
vi hosts