diff --git a/adopt.yaml b/adopt.yaml index 182685f..80756bb 100644 --- a/adopt.yaml +++ b/adopt.yaml @@ -1,10 +1,10 @@ --- -- name: reboot - hosts: [rk1] +- name: adoptap + hosts: fkip3,fkip1,fkip2,tk1,tk2 gather_facts: False tasks: - - name: rk1 - raw: mca-cli-op set-inform http://north-unifi.unej.ac.id:8080/inform + - name: adoptap + raw: mca-cli-op set-inform http://south-unifi.unej.ac.id:8080/inform register: info_out - debug: diff --git a/hosts b/hosts deleted file mode 100644 index 1ccab9b..0000000 --- a/hosts +++ /dev/null @@ -1,10 +0,0 @@ -rk1: - hosts: - 10.10.10.231: - ansible_user: ubnt - ansible_password: ubnt -rk2: - hosts: - 10.10.118.26: - ansible_user: aproot - ansible_password: 'Asdf123#' diff --git a/help.yaml b/info.yaml similarity index 65% rename from help.yaml rename to info.yaml index 4de9559..afbbdf5 100644 --- a/help.yaml +++ b/info.yaml @@ -1,9 +1,9 @@ --- -- name: reboot - hosts: rk1 +- name: infoap + hosts: fkip3,fkip1,fkip2,tk1,tk2 gather_facts: False tasks: - - name: rk1 + - name: infoap raw: mca-cli-op info register: out_info - debug: diff --git a/listap b/listap new file mode 100644 index 0000000..1ee4a01 --- /dev/null +++ b/listap @@ -0,0 +1,264 @@ +[fkip3] +10.10.91.195 +10.10.91.196 +10.10.115.216 +10.10.115.229 +10.10.115.202 +10.10.115.186 +10.10.115.250 +10.10.115.207 +10.10.115.211 +10.10.115.189 +10.10.115.209 +10.10.115.191 +10.10.115.213 +10.10.115.214 +10.10.115.201 +10.10.115.200 +10.10.115.204 +10.10.115.205 +10.10.115.199 +10.10.115.183 +10.10.115.180 +10.10.115.182 +10.10.115.184 +10.10.115.187 +10.10.115.181 +10.10.115.188 +10.10.115.185 +10.10.115.248 +10.10.115.238 +10.10.115.133 +10.10.115.161 +10.10.115.147 +10.10.115.131 +10.10.115.166 +10.10.115.140 +10.10.115.141 +10.10.115.208 +10.10.115.136 +10.10.115.169 +10.10.115.164 +10.10.115.160 +10.10.115.162 +10.10.115.231 +10.10.115.165 +10.10.115.206 +10.10.115.163 +10.10.115.132 +10.10.115.221 +10.10.115.220 +10.10.115.194 +10.10.115.219 +10.10.115.218 +10.10.115.193 +10.10.115.192 +10.10.115.195 +10.10.115.142 +10.10.115.253 +10.10.115.251 +10.10.115.252 +10.10.115.190 +10.10.115.178 +10.10.115.156 +10.10.115.155 +10.10.115.158 +10.10.115.176 +10.10.115.174 +10.10.115.212 +10.10.115.157 +10.10.115.168 +10.10.115.179 +10.10.115.247 +10.10.115.135 +10.10.115.203 +10.10.115.139 +10.10.115.130 +10.10.115.173 +10.10.115.175 +10.10.115.177 + +[fkip1] +10.10.115.220 +10.10.115.150 +10.10.115.172 +10.10.115.152 +10.10.115.148 +10.10.115.149 +10.10.115.146 +10.10.115.167 +10.10.115.138 +10.10.115.170 +10.10.115.145 +10.10.115.196 +10.10.115.151 +10.10.115.153 +10.10.115.137 + +[fkip2] +192.168.188.245 +192.168.188.251 +192.168.188.135 +192.168.188.250 +192.168.188.249 +192.168.188.246 +192.168.188.247 + +[tk1] +192.168.73.17 +192.168.73.116 + +[tk2] +10.10.112.84 +10.10.112.96 + +[acpro] +10.10.91.195 +10.10.91.196 +10.10.115.216 +10.10.115.229 +10.10.115.202 +10.10.115.186 +10.10.115.250 +10.10.115.207 +10.10.115.211 +10.10.115.189 +10.10.115.209 +10.10.115.191 +10.10.115.213 +10.10.115.214 +10.10.115.201 +10.10.115.200 +10.10.115.204 +10.10.115.205 +10.10.115.199 +10.10.115.183 +10.10.115.180 +10.10.115.182 +10.10.115.184 +10.10.115.187 +10.10.115.181 +10.10.115.188 +10.10.115.185 +10.10.115.248 +10.10.115.238 +10.10.115.133 +10.10.115.161 +10.10.115.147 +10.10.115.131 +10.10.115.166 +10.10.115.140 +10.10.115.141 +10.10.115.208 +10.10.115.136 +10.10.115.169 +10.10.115.164 +10.10.115.160 +10.10.115.162 +10.10.115.231 +10.10.115.165 +10.10.115.206 +10.10.115.163 +10.10.115.132 +10.10.115.221 +10.10.115.220 +10.10.115.194 +10.10.115.219 +10.10.115.218 +10.10.115.193 +10.10.115.192 +10.10.115.195 +10.10.115.142 +10.10.115.253 +10.10.115.251 +10.10.115.252 +10.10.115.150 +10.10.115.172 +10.10.115.152 +10.10.115.148 +10.10.115.149 +10.10.115.146 +10.10.115.167 +10.10.115.138 +10.10.115.170 +10.10.115.145 +10.10.115.196 +10.10.115.151 +10.10.115.153 +10.10.115.137 +192.168.188.251 +192.168.188.135 +192.168.188.250 +192.168.188.249 +192.168.188.246 +192.168.188.247 + +[pro] +10.10.115.179 +10.10.115.168 +10.10.115.157 +10.10.115.212 + +[uap] +10.10.115.190 +10.10.115.178 +10.10.115.156 +10.10.115.155 +10.10.115.158 +10.10.115.176 +10.10.115.174 +192.168.188.245 + +[lr] +10.10.115.173 +10.10.115.175 +10.10.115.177 + +[aclr] +10.10.115.247 +10.10.115.130 +10.10.115.135 +10.10.115.203 +10.10.115.139 +10.10.112.84 +10.10.112.96 + +[fkip3:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[fkip1:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[fkip2:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[tk1:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[tk2:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[acpro:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[pro:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[uap:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[lr:vars] +ansible_user=aproot +ansible_password='Asdf123#' + +[aclr:vars] +ansible_user=aproot +ansible_password='Asdf123#' diff --git a/reboot.yaml b/reboot.yaml index fdea6ca..24b1dda 100644 --- a/reboot.yaml +++ b/reboot.yaml @@ -1,8 +1,7 @@ --- -- name: reboot - hosts: [rk1,rk2] - gather_facts: False +- name: reboot ap + hosts: fkip3,fkip1,fkip2,tk1,tk2 + gather_facts: false tasks: - - name: rk1 - raw: reboot - + - name: reboot ap + raw: reboot diff --git a/upgradeaclr.yaml b/upgradeaclr.yaml new file mode 100644 index 0000000..50358f4 --- /dev/null +++ b/upgradeaclr.yaml @@ -0,0 +1,12 @@ +--- +- name: upgradeap + hosts: aclr + vars: + aclr: "https://dl.ui.com/unifi/firmware/U7PG2/6.0.21.13673/BZ.qca956x_6.0.21+13673.220607.2004.bin" + gather_facts: false + tasks: + - name: upgradeap + raw: 'mca-cli-op upgrade {{ aclr }}' + register: info_out + - debug: + var: info_out.stdout_lines diff --git a/upgradeacpro.yaml b/upgradeacpro.yaml new file mode 100644 index 0000000..b7cc3d8 --- /dev/null +++ b/upgradeacpro.yaml @@ -0,0 +1,12 @@ +--- +- name: upgradeap + hosts: acpro + vars: + acpro: "https://dl.ui.com/unifi/firmware/U7PG2/6.0.21.13673/BZ.qca956x_6.0.21+13673.220607.2004.bin" + gather_facts: false + tasks: + - name: upgradeap + raw: 'mca-cli-op upgrade {{ acpro }}' + register: info_out + - debug: + var: info_out.stdout_lines diff --git a/upgradeap.yaml b/upgradeap.yaml new file mode 100644 index 0000000..b2e7d1b --- /dev/null +++ b/upgradeap.yaml @@ -0,0 +1,12 @@ +--- +- name: upgradeap + hosts: uap + vars: + uap: "https://dl.ui.com/unifi/firmware/BZ2/4.3.28.11361/BZ.ar7240.v4.3.28.11361.210128.2309.bin" + gather_facts: false + tasks: + - name: upgradeap + raw: 'mca-cli-op upgrade {{ uap }}' + register: info_out + - debug: + var: info_out.stdout_lines diff --git a/upgradelr.yaml b/upgradelr.yaml new file mode 100644 index 0000000..54b5b40 --- /dev/null +++ b/upgradelr.yaml @@ -0,0 +1,12 @@ +--- +- name: upgradeap + hosts: lr + vars: + lr: "https://dl.ui.com/unifi/firmware/BZ2/4.3.28.11361/BZ.ar7240.v4.3.28.11361.210128.2309.bin" + gather_facts: false + tasks: + - name: upgradeap + raw: 'mca-cli-op upgrade {{ lr }}' + register: info_out + - debug: + var: info_out.stdout_lines diff --git a/upgradepro.yaml b/upgradepro.yaml new file mode 100644 index 0000000..a22b91d --- /dev/null +++ b/upgradepro.yaml @@ -0,0 +1,12 @@ +--- +- name: upgradeap + hosts: pro + vars: + pro: "https://dl.ui.com/unifi/firmware/U7P/4.3.28.11361/BZ.ar934x.v4.3.28.11361.210128.2309.bin" + gather_facts: false + tasks: + - name: upgradeap + raw: 'mca-cli-op upgrade {{ pro }}' + register: info_out + - debug: + var: info_out.stdout_lines