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:
- python-paramiko
- python-pmw
- python-setuptools
- python-psycopg2
- pytz
- qhull
- qt
......@@ -236,4 +237,5 @@ pkgs:
- perl-HTML-Parser
- perl-HTML-Tagset
- postgresql-contrib
- postgresql-devel
- environment-modules
......@@ -15,6 +15,7 @@
- name: "make basedir"
file: path={{ ldapCaCertDir.stdout }} state=directory owner=root
sudo: true
ignore_errors: true
- name: "Copy the CA cert"
copy: src={{ ldapCaCertSrc }} dest={{ ldapCaCertFile }} owner=root mode=644
......@@ -38,9 +39,9 @@
template: src=authconfig.j2 dest=/etc/sysconfig/authconfig
sudo: true
#- name: "Copy ldap.conf file "
# template: src=ldap.conf.j2 dest=/etc/openldap/ldap.conf
# sudo: true
- name: "Copy ldap.conf file "
template: src=ldap.conf.j2 dest=/etc/openldap/ldap.conf
sudo: true
- name: "Add LDAP server IP address to /etc/hosts"
lineinfile: dest=/etc/hosts line="{{ ldapServerHostIpLine }}" state=present insertafter=EOF
......
......@@ -2,15 +2,15 @@
- name: "Install open ldap package yum"
action: yum pkg={{ item }} state=installed
with_items:
# - openldap
# - openldap-clients
- openldap
- openldap-clients
- sssd
- sssd-common
- sssd-client
- nss
- nss-tools
# - nss-pam-ldapd
# - pam_ldap
- nss-pam-ldapd
- pam_ldap
sudo: true
when: ansible_os_family == 'RedHat'
......
---
- name: copy rpms
copy: src=/tmp/rpmbuild dest=/tmp/
copy: src=/tmp/rpmbuild dest=/tmp
sudo: true
- name: install munge rpms
......@@ -15,13 +15,19 @@
- perl-DBI
sudo: true
- name: check slurm account
shell: id slurm
register: slurm_account
- name: create slurm group
group: name=slurm system=yes
sudo: true
when: slurm_account | failed
- name: create slurm user
user: name=slurm group=slurm system=yes createhome=no
sudo: true
when: slurm_account | failed
- name: install slurm rpms
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