chagood 2 年之前
父节点
当前提交
00060a47c1
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 2 1
      UbuntuJoinDomain.sh
  2. 8 0
      wget.txt

+ 2 - 1
UbuntuJoinDomain.sh

@@ -75,8 +75,9 @@ sudo realm permit -g "Domain Admins"
 
 # Set up sudoers file
 echo "%Domain\ Admins     ALL=(ALL:ALL)   ALL" | sudo tee /etc/sudoers.d/LocalAdmins > /dev/null
-# echo "%Access\ -\ Admin\ -\ All\ Servers     ALL=(ALL)   ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
+echo "%AnisbleAdmins     ALL=(ALL)   ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
 # echo "%Access\ -\ Admin\ -\ $HOST     ALL=(ALL)   ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
+echo "ansible  ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/LocalAdmins > /dev/null
 
 # copy file from SCP server to local system
 # sudo scp -r anonymous@ptiwa001:ninja-agent.deb ~/

+ 8 - 0
wget.txt

@@ -0,0 +1,8 @@
+wget https://gogs.hagood.us/chagood/Ubuntu/raw/master/Template/22_04template.sh
+wget https://gogs.hagood.us/chagood/Ubuntu/raw/master/Cleanup.sh
+wget https://gogs.hagood.us/chagood/Ubuntu/raw/master/Static.sh
+wget https://gogs.hagood.us/chagood/Ubuntu/raw/master/UbuntuJoinDomain.sh
+wget https://gogs.hagood.us/chagood/Ubuntu/raw/master/config.sh
+wget https://gogs.hagood.us/chagood/Ubuntu/raw/master/dhcp.sh
+
+chmod +x 22_04template.sh Cleanup.sh dhcp.sh Static.sh UbuntuJoinDomain.sh