Hi there

I literally jut started with Ansible, and I can already see it is going to 
be a long road to get where I can use if to install jboss :)

I am therefore not ready for playbooks yet, and just like to execute the 
commands like this for now:

####################
# Define the user
####################
# 
ansible gby-linux -a "useradd -d /home/davidl -m -s /bin/tcsh  davidl"
#
#Supply the userid with a passwd
#################################
ansible gby-linux -a "echo abc123 l passwd davidl --stdin"
#
# Expire the userid 
#################################
ansible gby-linux -a "/usr/chage -d 0 davidl"
#
#################################
#gby-linux would be a group 
#of servers in /etc/ansible/hosts
#################################

I would for now just like to build in a check on each of the steps to see 
if the previous 'rc' was zero before continuing, but I just cannot get any 
examples.

Lastly, what would be a good link to get the basics right before starting.

Thank You in Advance

Kind Regards

Herbie

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0a9416cd-7cef-4e7a-bd19-893aaa5b1dff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to