Skip to content
Snippets Groups Projects
Commit 309b36d3 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

fixed exceptions

parent 2eccf17a
No related branches found
No related tags found
No related merge requests found
...@@ -170,6 +170,7 @@ pkgs: ...@@ -170,6 +170,7 @@ pkgs:
- python-paramiko - python-paramiko
- python-pmw - python-pmw
- python-setuptools - python-setuptools
- python-psycopg2
- pytz - pytz
- qhull - qhull
- qt - qt
...@@ -236,4 +237,5 @@ pkgs: ...@@ -236,4 +237,5 @@ pkgs:
- perl-HTML-Parser - perl-HTML-Parser
- perl-HTML-Tagset - perl-HTML-Tagset
- postgresql-contrib - postgresql-contrib
- postgresql-devel
- environment-modules - environment-modules
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
- name: "make basedir" - name: "make basedir"
file: path={{ ldapCaCertDir.stdout }} state=directory owner=root file: path={{ ldapCaCertDir.stdout }} state=directory owner=root
sudo: true sudo: true
ignore_errors: true
- name: "Copy the CA cert" - name: "Copy the CA cert"
copy: src={{ ldapCaCertSrc }} dest={{ ldapCaCertFile }} owner=root mode=644 copy: src={{ ldapCaCertSrc }} dest={{ ldapCaCertFile }} owner=root mode=644
...@@ -38,9 +39,9 @@ ...@@ -38,9 +39,9 @@
template: src=authconfig.j2 dest=/etc/sysconfig/authconfig template: src=authconfig.j2 dest=/etc/sysconfig/authconfig
sudo: true sudo: true
#- name: "Copy ldap.conf file " - name: "Copy ldap.conf file "
# template: src=ldap.conf.j2 dest=/etc/openldap/ldap.conf template: src=ldap.conf.j2 dest=/etc/openldap/ldap.conf
# sudo: true sudo: true
- name: "Add LDAP server IP address to /etc/hosts" - name: "Add LDAP server IP address to /etc/hosts"
lineinfile: dest=/etc/hosts line="{{ ldapServerHostIpLine }}" state=present insertafter=EOF lineinfile: dest=/etc/hosts line="{{ ldapServerHostIpLine }}" state=present insertafter=EOF
......
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
- name: "Install open ldap package yum" - name: "Install open ldap package yum"
action: yum pkg={{ item }} state=installed action: yum pkg={{ item }} state=installed
with_items: with_items:
# - openldap - openldap
# - openldap-clients - openldap-clients
- sssd - sssd
- sssd-common - sssd-common
- sssd-client - sssd-client
- nss - nss
- nss-tools - nss-tools
# - nss-pam-ldapd - nss-pam-ldapd
# - pam_ldap - pam_ldap
sudo: true sudo: true
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
......
--- ---
- name: copy rpms - name: copy rpms
copy: src=/tmp/rpmbuild dest=/tmp/ copy: src=/tmp/rpmbuild dest=/tmp
sudo: true sudo: true
- name: install munge rpms - name: install munge rpms
...@@ -15,13 +15,19 @@ ...@@ -15,13 +15,19 @@
- perl-DBI - perl-DBI
sudo: true sudo: true
- name: check slurm account
shell: id slurm
register: slurm_account
- name: create slurm group - name: create slurm group
group: name=slurm system=yes group: name=slurm system=yes
sudo: true sudo: true
when: slurm_account | failed
- name: create slurm user - name: create slurm user
user: name=slurm group=slurm system=yes createhome=no user: name=slurm group=slurm system=yes createhome=no
sudo: true sudo: true
when: slurm_account | failed
- name: install slurm rpms - name: install slurm rpms
shell: "rpm --install /tmp/rpmbuild/RPMS/x86_64/slurm*{{ slurm_version }}*rpm" shell: "rpm --install /tmp/rpmbuild/RPMS/x86_64/slurm*{{ slurm_version }}*rpm"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment