1. 程式人生 > >ansible的安裝操作命令

ansible的安裝操作命令

1  ifconfig     2  top     3  curl www.baidu.com     4  git clone git://github.com/ansible/ansible.git --recursive     5  ls     6  mv ansible/ /opt     7  cd /opt     8  ll     9  cd ansible/    10  source ./hacking/env-setup    11  . ./hacking/env-setup.fish     12  . ./hacking/env-setup -q    13  source ./hacking/env-setup -q    14  sudo easy_install pip    15  sudo pip install paramiko PyYAML Jinja2 httplib2 six    16  cd /etc    17  ls    18  cd ..    19  cd /opt/    20  ls    21  cd ansible/    22  ls    23  find / -name inventory    24  ls    25  cd ..    26  ./ansible/    27  cd ansible/    28  source ./hacking/env-setup    29  sudo easy_install pip    30  ls    31  cd /etc/    32  ll    33  cd /root    34  ll    35  yum -y install epel-release    36  yum -y install ansible.noarch    37  vi /etc/ansible/    38  cd /etc/ansible/    39  ls    40  vi hosts     41  top    42  cd /etc/ansible/    43  ls    44  vi hosts     45  cd ..    46  cd /opt    47  ls    48  ssh-keygen -t rsa -p    49  ssh-keygen -t rsa -P    50  ssh-keygen -t rsa -P ''    51  ls    52  find / -name ssh-keygen    53  cd /usr/bin/    54  ls    55  cd /opt    56  ansible slb -m ping    57  ansible sdyy02 -m ping    58  vi /etc/ansible/hosts     59  ansible 192.168.7.7 -m ping    60  ssh-keygen -t rsa    61  cd $HOME/.ssh    62  ls    63  ssh-copy-id -i ~/.ssh/id_rsa.pub

[email protected]    64  ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]8.7.8    65  vi /etc/ansible/ansible.cfg     66  ansible all -m ping    67  ansible sdyy -m ping    68  top    69  java _version    70  java -version    71  cd /opt    72  ll    73  tar -zxvf apache-maven-3.5.2-bin.tar.gz     74  ll    75  cd apache-maven-3.5.2/    76  ll    77  cd ..    78  vi /etc/profile    79  source /etc/profile    80  vi /etc/profile    81  source /etc/profile    82  vi /etc/profile    83  source /etc/profile    84  java -version    85  find / -name jd    86  find / -name jdk    87  rpm -qa|grep java    88  rpm -e --nodeps java-1.8.0-openjdk    89  rpm -e --nodeps java-1.7.0-openjdk    90  rpm -qa|grep java    91  rpm -e --nodeps java-1.7.0-openjdk-headless     92  rpm -e --nodeps java-1.8.0-openjdk-headless     93  rpm -qa|grep java    94  rpm -e --nodeps tzdata    95  rpm -e --nodeps javapackages-tools     96  rpm -e --nodeps python-javapackages     97  rpm -qa|grep java    98  rpm -e --nodeps tzdata-java     99  rpm -qa|grep java   100  ll   101  rpm -ivh jdk-8u11-linux-x64.rpm    102  java -version   103  cd /usr/java/   104  ls   105  vi /etc/profile   106  source /etc/profile   107  cd ..   108  cd /opt   109  ll   110  cd apache-maven-3.5.2/   111  ll   112  cd bin/   113  lll   114  ll   115  cd ..   116  ll   117  mv apache-maven-3.5.2 /usr/local/   118  ll   119  cd /usr/local/   120  ll   121  vi /etc/profile   122  source /etc/profile   123  mvn -v   124  cd /opt   125  ll   126  tar -zxvf apache-tomcat-7.0.76.tar.gz    127  ll   128  cd apache-tomcat-7.0.76/conf/   129  ll   130  vi server.xml    131  vi tomcat-users.xml    132  cd ..   133  cd bin/   134  ./startup.sh    135  tail -f /opt/apache-tomcat-7.0.76/logs/catalina.out    136  ./shutdown.sh    137  cd ..   138  cd conf/   139  ls   140  vi server.xml    141  cd ..   142  cd bin/   143  ./startup.sh    144  tail -f /opt/apache-tomcat-7.0.76/logs/catalina.out    145  ./shutdown.sh    146  ./startup.sh    147  tail -f /opt/apache-tomcat-7.0.76/logs/catalina.out    148  ./shutdown.sh    149  tail -f /opt/apache-tomcat-7.0.76/logs/catalina.out    150  netstat -tnlp   151  systemctl status firewalld.service   152  systemctl disable firewalld.service   153  systemctl status firewalld.service   154  systemctl stop firewalld.service   155  systemctl status firewalld.service   156  systemctl disable firewalld.service   157  systemctl status firewalld.service   158  netstat -tnlp   159  cd ..   160  cd conf/   161  ls   162  vi server.xml    163  cd ..   164  cd bin/   165  ./startup.sh    166  tail -f /opt/apache-tomcat-7.0.76/logs/catalina.out    167  cd /root/.jenkins/secrets/   168  ls   169  vi initialAdminPassword    170  tail -f /opt/apache-tomcat-7.0.76/logs/catalina.out    171  vi /etc/ansible/hosts    172  cd /opt   173  ll   174  sdyy -s -m copy -a 'src=/opt/cs.txt dest=/opt owner=webadmin group=webadmin backup=yes'   175  ansible sdyy -s -m copy -a 'src=/opt/cs.txt dest=/opt owner=webadmin group=webadmin backup=yes'   176  ansible sdyy -m shell -a "/opt/tomcat1.sh stop"   177  ansible sdyy -m shell -a "/opt/tomcat1.sh start"   178  ansible sdyy -m shell -a "/opt/tomcat1.sh start owner=webadmin group=webadmin"   179  ansible sdyy -m shell -a "/opt/tomcat1.sh stop owner=webadmin group=webadmin"   180  ansible sdyy -m shell -a "/opt/tomcat1.sh start owner=webadmin group=webadmin"   181  ansible sdyy -m shell -a "/opt/tomcat8-solr5/bin/startup.sh"   182  ansible sdyy -m shell -a "/opt/tomcat1.sh stop owner=webadmin group=webadmin"   183  ansible sdyy -m shell -a "/opt/tomcat1.sh start owner=webadmin group=webadmin"   184  ansible sdyy -m  -a "/opt/tomcat1.sh start owner=webadmin group=webadmin"   185  ansible sdyy -m shell -a " nohup /opt/tomcat1.sh start owner=webadmin group=webadmin"   186  ansible sdyy -m shell -a "/opt/tomcat1.sh stop owner=webadmin group=webadmin"   187  ansible sdyy -m shell -a " nohup /opt/tomcat1.sh start owner=webadmin group=webadmin"   188  ll   189  ansible sdyy -s -m copy -a 'src=/opt/cs.txt dest=/opt/ owner=webadmin group=webadmin backup=yes   190  '   191  ansible sdyy -m shell -a "rm -rf /opt/cs.txt"   192  vi /etc/ansible/hosts    193  ansible windows -m win_ping   194  winrm enumerate winrm/config/listener   195  ansible windows -m win_ping   196  pip install ""pywinrm>=0.1.1"   197  ansible windows -m win_ping   198  vi /etc/ansible/hosts    199  ansible windows -m win_ping   200  ansible sdyy -m ping   201  ansible all -m ping   202  ansible windows -i host -m win_ping   203  cd /opt   204  ls   205  ansible windows -i host -m win_ping   206  vi /etc/ansible/hosts    207  ansible windows -m win_ping   208  yum -y install pywinrm   209  ll   210  tar zxvf pywinrm-0.2.2.tar.gz    211  tar -zxvf isodate-0.6.0.tar.gz    212  tar -zxvf xmlwitch-0.3.tar.gz    213  cd pywinrm-0.2.2/   214  ls   215  python setup.py install   216  python   217  ansible windows -m win_ping   218  python -v   219  ansible windows -m win_ping   220  sudo pip install paramiko PyYAML Jinja2 httplib2 six   221  ansible windows -m win_ping   222  ansible sdyy -m win_ping   223  history   224  top   225  netstat -tnlp   226  pudoc modiles   227  pydoc modules   228  pip list   229  ansible windows -m win_ping   230  sudo pip uninstall request   231  sudo pip uninstall requests   232  pip install requests   233  pip uninstall docopt   234  sudo pip uninstall docopt   235  sudo pip install docopt   236  ansible windows -m win_ping   237  vi /etc/ansible/hosts    238  ansible windows -m win_ping   239  vi /etc/ansible/hosts    240  ansible windows -m win_ping   241  vi /etc/ansible/hosts    242  ansible windows -m win_ping   243  cd /opt/   244  ll   245  ansible windows -m win_copy -a 'src=/opt/cs.txt dest=D:\'   246  ansible windows -m win_file -a "path=D:\cs.txt state=absent"   247  history