forked from johnsimcall/storage-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhacks.txt
35 lines (26 loc) · 2.57 KB
/
hacks.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Bulk allow new hosts with unknown SSH host keys
ANSIBLE_HOST_KEY_CHECKING=False ansible all -m ping
# Push my key
ansible -i hosts/smc-hosts gluster -k -m authorized_key -a 'user=root state=present key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1vfRWODjNpS45BwAD864B1ezqIOb5fxCjnOwsgx/p8QchwWQhIUeC+PAUBI/QJ/nzX2pUOx0erNu8wuQRobOMxmYmsIyeuIIkBSJxffeFm4Cuy0glgkNR5ry90AHabO7bvXoY1q2QJ6sdkMeh2r1b/tx+2KFBOpe6v2HAcBpS+srl/fpdOV0GK2HNC0DsHz/2/me2hQ9gNIBOrb/Y7TJL5GcmbbHeteW4g648w1771El6r+JugmwlJ7/B/Jw5b4StpJmYQq0s1x9TJnqXO1kZGZ1YDrUEF25ZxkLZxmLxwD8hUDVbaeCAjbNQCe5OXc3wl96VvwXsPE2d838DBUTL [email protected]"'
ansible hs23 -u root -m copy -a "src=/home/jcall/Documents/Home-Lab/BCS/lnvgy_utl_uxspi_10.2_rhel7_x86-64.bin dest=/root/ mode=0755"
ansible hs23 -u root -m mount -a "name=/mnt/nas src=192.168.0.99:/nas fstype=nfs state=mounted"
ansible b02 -u root -m shell -a 'screen -S uxspi -d -m bash -c "/root/bin/uxspi update --local=/mnt/nas/UXSPi/ --latest --unattended"'
ansible blades -u root -m yum -a "name=glibc.i686,screen,xorg-x11-xauth state=latest"
ansible hs23 -u root -m systemd -a "name=NetworkManager state=restarted"
ansible hs23 -u root -m file -a "path=/root/bin state=directory"
ansible 192.168.0.39 -u root -m copy -a "src=/home/jcall/Downloads/lnvgy_utl_asu_asut92i-10.3_linux_x86-64.rpm dest=/tmp"
ansible 192.168.0.39 -u root -m shell -a "yum -y install /tmp/lnvgy_utl_asu_asut92i-10.3_linux_x86-64.rpm"
ansible hs23 -u root -m command -a "ipmitool chassis bootparam set bootflag force_bios"
ipmitool chassis bootparam set bootflag force_cdrom
ipmitool chassis bootparam set bootflag force_pxe
ansible b02,b03,b04,b05,b06, -m shell -a 'ethtool -i eno1 | grep version'
ansible hs23 -u root -m file -a "src=/opt/lenovo/toolscenter/asu/asu64 dest=/usr/local/bin/asu64 state=link"
ansible blades -m yum -a 'name=net-snmp,net-snmp-utils state=latest'
ansible blades -m yum -a 'name=tcsh,glibc.i686,libstdc++.i686,libXau.i686,libxcb.i686,libX11.i686,libXext.i686,libXi.i686,libXtst.i686,glib2.i686,nss-softokn-freebl.i686,libgcc.i686 state=latest'
ansible blades -m yum -a 'enablerepo=rhel-7-server-optional-rpms name=compat-libstdc++-33,compat-libstdc++-33.i686 state=latest'
ansible blades -m shell -a 'lsmod | sort | egrep "mpt2|mpt3|megaraid"'
1102 ansible blades -m shell -a 'file /lib64/libssl*'
ansible blades -m shell -a 'file /lib64/libcrypto.so.*'
ansible blades -m file -a 'src=/lib64/libcrypto.so.1.0.1e dest=/lib64/libcrypto.so.4 state=link'
ansible blades -m shell -a 'file /lib64/libssl.so.*'
ansible blades -m file -a 'src=/lib64/libssl.so.1.0.1e dest=/lib64/libssl.so.4 state=link'