系统运维


批量更新SSL证书

<p>sudo ls /home/jianwei/ops-web/data/srvs/</p> <p>cd /home/ops/tools 跑公网机器 sudo ./dev export srvs ansible public all-region 星辰工作室.长安幻想 all all 跑内网机器 sudo ./dev export srvs ansible internal all-region 星辰工作室.云2 all all</p> <p>cd /etc/ansible/playbooks/certificate_scp/ ansible-playbook -i XXX -e &quot;ansible_ssh_user=shiyue&quot; cert.yml --become</p> <p>批量检测 <code>sudo ansible all -m shell -a "openssl x509 -enddate -noout -in /data/conf/nginx/1_shiyue.com_bundle.crt" -i /home/jianwei/ops-web/ops-web-tools/export-srvs-ansible.txt --become</code></p>

页面列表

ITEM_HTML