AIX 6.1安装python

目的:尝试ansible是否可以管理AIX系统的节点,在节点机上需要安装python

1.下载安装python需要的包

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

2.下载以下rpm包

gdbm-1.8.3-5.aix5.2.ppc

gdbm-devel-1.8.3-5.aix5.2.ppc

readline-6.1-1.aix6.1.ppc

readline-devel-6.1-1.aix6.1.ppc

python-2.7.5-1.aix6.1.ppc

python-devel-2.7.5-1.aix6.1.ppc

python-tools-2.7.5-1.aix6.1.ppc

 

3.安装顺序,按照上面的顺序依次安装

# rpm -ivh gdbm-1.8.3-5.aix5.2.ppc.rpm           
gdbm                        ##################################################
# gdbm-devel-1.8.3-5.aix5.2.ppc.rpm^C
# rpm -ivh gdbm-devel-1.8.3-5.aix5.2.ppc.rpm
gdbm-devel                  ##################################################
# rpm -ivh readline-6.1-1.aix6.1.ppc.rpm
readline                    ##################################################
install-info: A file or directory in the path name does not exist. for //opt/freeware/info/history.info.gz
install-info: A file or directory in the path name does not exist. for //opt/freeware/info/readline.info.gz
execution of readline-6.1-1 script failed, exit status 1
# rpm -ivh readline-devel-6.1-1.aix6.1.ppc.rpm
readline-devel              ##################################################
# rpm -ivh  python-2.7.5-1.aix6.1.ppc.rpm
python                      ##################################################
# rpm -ivh python-devel-2.7.5-1.aix6.1.ppc.rpm
python-devel                ##################################################
# rpm -ivh python-tools-2.7.5-1.aix6.1.ppc.rpm
python-tools                ##################################################

4.在管理节点测试通过

[root@st005 ~]# ansible aix -m ping
10.1.4.166 | success >> {
    "changed": false,
    "ping": "pong"
}

 

[root@st005 ~]# ansible aix -a 'mkdir /opt/aspire/cuichao'
10.1.4.166 | success | rc=0 >>

 

在被管理节点检查已经创建成功


# pwd
/opt/aspire/cuichao

 

你可能感兴趣的:(ansible)