Skip to main content

Posts

Showing posts with the label error

Ansible issues

is not a valid attribute for a Play When ever you get the above error firstly crosscheck that the ansible attribute you have mentioned is correct. If it is correct then the issue probably is that you have created tasks as follows: --- - vars_prompt: - name: "var1" prompt: "Please pass variable" private: no - fail: msg="var1 is not passed or blank" when: var1 is undefined or ( var1 is defined and storeid == "" ) when it should be as follows: --- vars_prompt: - name: "var1" prompt: "Please pass variable" private: no tasks: - fail: msg="var1 is not passed or blank" when: var1 is undefined or ( var1 is defined and storeid == "" ) the example referenced is just a task. It is not a valid playbook because it is missings a hosts declaration and the module call is not under a tasks section. ERROR! conflicting action statements: fail, ...

Install and configure chef server on centos 7

Go to this link: https://downloads.chef.io/chef-server In the on-premise section select your OS and download your package. Here I will be using centos 7. When the rpm is downloaded you can install it via the command: sudo rpm -Uvh Execute the following command: chef-server-ctl reconfigure Because the Chef server is composed of many different services that work together to create a functioning system, this step may take a few minutes to complete. Run the following command to create an administrator: $ chef-server-ctl user-create USER_NAME FIRST_NAME LAST_NAME EMAIL 'PASSWORD' --filename FILE_NAME An RSA private key is generated automatically. This is the user’s private key and should be saved to a safe location. The  --filename  option will save the RSA private key to the specified absolute path. For example: $ chef-server-ctl user-create stevedanno Steve Danno steved@chef.io 'abc123' --filename /path/to/stevedanno.pem If you get the following err...