【文件属性】:
文件名称:freebsd-ansible-config:freebsd台式机或服务器的ansible配置
文件大小:16KB
文件格式:ZIP
更新时间:2021-03-06 02:22:22
freebsd ansible server configuration laptop
freebsd-ansible-config
(重新)安装您的FreeBSD笔记本电脑或服务器的规则。
要求
这利用了项目。 您需要使用以下命令进行安装:
sudo pkg install -y ansible
用法
笔记本电脑部署
为了运行它,您需要使用bootstrap.sh脚本并使用特权用户启动ansible-playbook命令,如下所示:
sudo ./bootstrap.sh
sudo ansible-playbook -b -k -u $USER -v playbooks/laptop.yml
服务器部署
sudo ansible-playbook -v -l server playbooks/server.yml --ssh-extra-args="-A"
规格测试
使用基础架构测试框架实施测试
我们可以通过启动规格测试来验证我们的安装是否
【文件预览】:
freebsd-ansible-config-master
----.gitignore(35B)
----playbooks()
--------server.yml(93B)
--------laptop.yml(68B)
----README.md(1KB)
----bootstrap.sh(1KB)
----Vagrantfile(722B)
----tests()
--------test_laptop.py(1KB)
--------runtests.sh(122B)
----group_vars()
--------all()
----ansible.cfg(82B)
----getfacts.sh(199B)
----plugins()
--------filter()
----inventory(173B)
----roles()
--------laptop()
--------devel()
--------irssi()