全部博文(108)
发布时间:2015-02-26 13:26:34
3.1. ArchitectureA SystemTap session begins when you run a SystemTap script. This session occurs in the following fashion:Procedure 3.1. SystemTap SessionFirst, SystemTap checks the script against the existing tapset library (normally in /usr/shar.........【阅读全文】
发布时间:2015-02-10 13:04:43
最近想利用下面的rsync_opts选项(支持ansible1.6以上)。但由于当前的ansible版本是1.5.4. 于是想直接apt-get update,失败。所以想卸载重新安装下,成功。点击(此处)折叠或打开synchronize: src=/tmp/helloworld dest=/var/www/helloword rsync_opts=--no-motd,--exclude=.git.........【阅读全文】
发布时间:2015-01-07 18:53:30
点击(此处)折叠或打开>>> import socket>>> def print_machine_info():... host_name=socket.gethostname()... ip_address=socket.gethostbyname(host_name)... print "Host name: %s" % host_name... print "IP address:.........【阅读全文】
发布时间:2014-12-24 15:05:32
- lineinfile: dest=/etc/selinux/config regexp=^SELINUX= line=SELINUX=enforcing- lineinfile: dest=/etc/sudoers state=absent regexp="^%wheel"- lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost' owner=root group=root mode=0644- lineinfile: dest=/etc/httpd/conf/httpd.con.........【阅读全文】