The file /edx/app/edx_ansible/edx_ansible/playbooks/roles/edx_notes_api/defaults/main.yml don’t have the properties to change. For example: EDX_NOTES_API_CLIENT_SECRET is not there in the file. So I created my own configuration file at ~/config-notes.yml:
EDX_NOTES_API_MYSQL_DB_PASS: ***
EDX_NOTES_API_MYSQL_HOST: localhost
EDX_NOTES_API_DATASTORE_NAME: “notes”
EDX_NOTES_API_SECRET_KEY: I put over 50 chars key
EDX_NOTES_API_CLIENT_ID: client id from the admin client configuration
EDX_NOTES_API_CLIENT_SECRET: client secret from the admin client configuration
EDX_NOTES_API_ALLOWED_HOSTS:
localhost
lms.mydomain
Following is the error:
TASK [aws : Gather ec2 facts for use in other roles] ****************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“failed”: true, “msg”: “The module ec2_metadata_facts was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run ‘git pull --rebase’ to correct this problem.”}
to retry, use: --limit @/edx/app/edx_ansible/edx_ansible/playbooks/notes.retry
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost : ok=31 changed=3 unreachable=0 failed=1
I made these changes into /edx/app/edx_ansible/edx_ansible/playbooks/roles/edx_notes_api/defaults/main.yml file and /edx/app/edxapp/lms.env.json file and I did sudo
Which returned the following error msg
ERROR! the playbook: local could not be found
Sorry I am Rookie in this field so it’s not very easy for me.
@Melsu I will highly appreciate it if you can write down the steps/ commands to make the Ironwood Notes working. This will help to save a lot of time and effort of the edX Community.
I wish melsu and I could submit detailed guide but held up on a project however this shall be a good pointer.
You follow Lawrence McDaniel’s blog step 1 & step 2. Additionally define Version in step 2 as open-release/ironwood.2
While performing step 3
First and foremost even before using source command do
sudo vim /edx/app/edx_ansible/edx_ansible/playbooks/notes.yml
Add #/comment out -aws in role section.
Then follow
source /edx/app/edx_ansible/venvs/edx_ansible/bin/activate
cd /edx/app/edx_ansible/edx_ansible/playbooks
sudo ansible-playbook -i ‘localhost,’ -c local ./run_role.yml -e ‘role=edxlocal’ -e@roles/edx_notes_api/defaults/main.yml
Subsequently run these 2 additional commands before going to step 4